Home | History | Annotate | Download | only in SemaTemplate

Lines Matching defs:traits

25   template<typename T> struct traits {
30 template<typename U> using rebind = traits<rebind_thing<U>>;
44 typedef traits<thing<inner>> traits_type;
48 thing(traits_type &traits) : traits(traits), val(traits.alloc()) {}
49 ~thing() { traits.free(static_cast<inner_ptr&&>(val)); }
51 traits_type &traits;
60 template<> bool &traits<thing<bool>>::alloc() { static bool b; return b; }
61 template<> void traits<thing<bool>>::free(bool&) {}
64 typedef X::traits<X::thing<int>> itt;