Lines Matching refs:value

33 template <typename T> struct trait_trivial_ctor { enum { value = false }; };
34 template <typename T> struct trait_trivial_dtor { enum { value = false }; };
35 template <typename T> struct trait_trivial_copy { enum { value = false }; };
36 template <typename T> struct trait_trivial_move { enum { value = false }; };
37 template <typename T> struct trait_pointer { enum { value = false }; };
38 template <typename T> struct trait_pointer<T*> { enum { value = true }; };
44 is_pointer = trait_pointer<TYPE>::value,
46 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value,
48 has_trivial_dtor = is_pointer || trait_trivial_dtor<TYPE>::value,
50 has_trivial_copy = is_pointer || trait_trivial_copy<TYPE>::value,
52 has_trivial_move = is_pointer || trait_trivial_move<TYPE>::value
72 template<> struct trait_trivial_ctor< T > { enum { value = true }; };
75 template<> struct trait_trivial_dtor< T > { enum { value = true }; };
78 template<> struct trait_trivial_copy< T > { enum { value = true }; };
81 template<> struct trait_trivial_move< T > { enum { value = true }; };
223 * a key/value pair
232 VALUE value;
234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
244 return value;
250 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; };
253 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; };
256 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; };
259 { enum { value = aggregate_traits<K,V>::has_trivial_move }; };
274 template <> inline hash_t hash_type(const T& value) { return hash_t(value); }
276 template <> inline hash_t hash_type(const T& value) { \
277 return hash_t((value >> 32) ^ value); }
279 template <> inline hash_t hash_type(const T& value) { \
280 return hash_type(*reinterpret_cast<const R*>(&value)); }
294 template <typename T> inline hash_t hash_type(T* const & value) {
295 return hash_type(uintptr_t(value));