Lines Matching refs:value

34 template <typename T> struct trait_trivial_ctor  { enum { value = false }; };
35 template <typename T> struct trait_trivial_dtor { enum { value = false }; };
36 template <typename T> struct trait_trivial_copy { enum { value = false }; };
37 template <typename T> struct trait_trivial_assign{ enum { value = false }; };
39 template <typename T> struct trait_pointer { enum { value = false }; };
40 template <typename T> struct trait_pointer<T*> { enum { value = true }; };
43 template<> struct trait_trivial_ctor< T > { enum { value = true }; }; \
44 template<> struct trait_trivial_dtor< T > { enum { value = true }; }; \
45 template<> struct trait_trivial_copy< T > { enum { value = true }; }; \
46 template<> struct trait_trivial_assign< T >{ enum { value = true }; };
49 template<> struct trait_trivial_ctor< T > { enum { value = ctor }; }; \
50 template<> struct trait_trivial_dtor< T > { enum { value = dtor }; }; \
51 template<> struct trait_trivial_copy< T > { enum { value = copy }; }; \
52 template<> struct trait_trivial_assign< T >{ enum { value = assign }; };
57 is_pointer = trait_pointer<TYPE>::value,
58 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value,
59 has_trivial_dtor = is_pointer || trait_trivial_dtor<TYPE>::value,
60 has_trivial_copy = is_pointer || trait_trivial_copy<TYPE>::value,
61 has_trivial_assign = is_pointer || trait_trivial_assign<TYPE>::value
216 * a key/value pair
222 VALUE value;
224 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
225 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
235 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; };
239 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; };
243 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; };
247 { enum { value = aggregate_traits<K,V>::has_trivial_assign};};