Lines Matching refs:Allocator
58 template <typename Allocator, typename Tag>
63 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
64 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
67 static Allocator s_Allocator;
70 template <typename Allocator, typename T, typename Tag = void>
71 class StdAllocatorAdapter : public StdAllocatorAdapterHolder<Allocator, Tag>
82 template <class U> struct rebind { typedef StdAllocatorAdapter<Allocator, U, Tag> other; };
85 template <class U> StdAllocatorAdapter(const StdAllocatorAdapter<Allocator, U, Tag>&) throw() {} in StdAllocatorAdapter() argument
89 …e_type n, void* = 0) { return static_cast<T*>(StdAllocatorAdapterHolder<Allocator, Tag>::GetAlloca…
90 …void deallocate(pointer p, size_type) { StdAllocatorAdapterHolder<Allocator, Tag>::GetAllocator()-… in deallocate()
97 template <typename Allocator, typename T, typename Tag = void>
102 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
103 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
112 template <class U> struct rebind { typedef StdUnitAllocatorAdapter<Allocator, U, Tag> other; };
115 …template <class U> StdUnitAllocatorAdapter(const StdUnitAllocatorAdapter<Allocator, U, Tag>&) thro… in StdUnitAllocatorAdapter() argument
126 static Allocator s_Allocator;
129 template <typename Allocator, typename Tag>
130 Allocator StdAllocatorAdapterHolder<Allocator, Tag>::s_Allocator;
132 template <typename Allocator, typename T, typename Tag>
133 Allocator StdUnitAllocatorAdapter<Allocator, T, Tag>::s_Allocator;