Lines Matching refs:value

24 template <typename T> struct trait_trivial_ctor  { enum { value = false }; };
25 template <typename T> struct trait_trivial_dtor { enum { value = false }; };
26 template <typename T> struct trait_trivial_copy { enum { value = false }; };
27 template <typename T> struct trait_trivial_assign{ enum { value = false }; };
29 template <typename T> struct trait_pointer { enum { value = false }; };
30 template <typename T> struct trait_pointer<T*> { enum { value = true }; };
33 template<> struct trait_trivial_ctor< T > { enum { value = true }; }; \
34 template<> struct trait_trivial_dtor< T > { enum { value = true }; }; \
35 template<> struct trait_trivial_copy< T > { enum { value = true }; }; \
36 template<> struct trait_trivial_assign< T >{ enum { value = true }; };
39 template<> struct trait_trivial_ctor< T > { enum { value = ctor }; }; \
40 template<> struct trait_trivial_dtor< T > { enum { value = dtor }; }; \
41 template<> struct trait_trivial_copy< T > { enum { value = copy }; }; \
42 template<> struct trait_trivial_assign< T >{ enum { value = assign }; };
47 is_pointer = trait_pointer<TYPE>::value,
48 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value,
49 has_trivial_dtor = is_pointer || trait_trivial_dtor<TYPE>::value,
50 has_trivial_copy = is_pointer || trait_trivial_copy<TYPE>::value,
51 has_trivial_assign = is_pointer || trait_trivial_assign<TYPE>::value
206 * a key/value pair
212 VALUE value;
214 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
215 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
225 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; };
229 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; };
233 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; };
237 { enum { value = aggregate_traits<K,V>::has_trivial_assign};};