Home | History | Annotate | Download | only in SemaTemplate

Lines Matching defs:thing

26     typedef T thing;
27 typedef decltype(val(make<thing>())) inner_ptr;
29 template<typename U> using rebind_thing = typename thing::template rebind<U>;
41 template<typename T> struct thing {
44 typedef traits<thing<inner>> traits_type;
46 template<typename U> using rebind = thing<U>;
48 thing(traits_type &traits) : traits(traits), val(traits.alloc()) {}
49 ~thing() { traits.free(static_cast<inner_ptr&&>(val)); }
54 friend inner_ptr val(const thing &t) { return t.val; }
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;
66 itt::thing::traits_type itr;
67 itt::thing ith(itr);