Home | History | Annotate | Download | only in src

Lines Matching refs:Traits

54 template <typename T, typename Traits> struct sz_allocator {
67 sz_allocator(const sz_allocator<U, Traits> &)
88 template <class U> struct rebind { typedef sz_allocator<U, Traits> other; };
95 typename Traits::allocator_type current() {
96 if (!Traits::cache_allocator) {
98 return Traits::current();
101 Current = Traits::current();
103 assert(Current == Traits::current());
106 static void init() { Traits::init(); }
108 typename Traits::allocator_type Current;
111 template <class Traits> struct sz_allocator_scope {
112 explicit sz_allocator_scope(typename Traits::manager_type *Manager) {
113 Traits::set_current(Manager);
116 ~sz_allocator_scope() { Traits::set_current(nullptr); }
119 template <typename T, typename U, typename Traits>
120 inline bool operator==(const sz_allocator<T, Traits> &,
121 const sz_allocator<U, Traits> &) {
125 template <typename T, typename U, typename Traits>
126 inline bool operator!=(const sz_allocator<T, Traits> &,
127 const sz_allocator<U, Traits> &) {