Lines Matching refs:Allocator

61 template <typename Allocator, typename Tag>
66 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
67 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
70 static Allocator s_Allocator;
73 template <typename Allocator, typename T, typename Tag = void>
74 class StdAllocatorAdapter : public StdAllocatorAdapterHolder<Allocator, Tag>
85 template <class U> struct rebind { typedef StdAllocatorAdapter<Allocator, U, Tag> other; };
88 template <class U> StdAllocatorAdapter(const StdAllocatorAdapter<Allocator, U, Tag>&) throw() {} in StdAllocatorAdapter() argument
92 …e_type n, void* = 0) { return static_cast<T*>(StdAllocatorAdapterHolder<Allocator, Tag>::GetAlloca…
93 …void deallocate(pointer p, size_type) { StdAllocatorAdapterHolder<Allocator, Tag>::GetAllocator()-… in deallocate()
100 template <typename Allocator, typename T, typename Tag = void>
105 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
106 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
115 template <class U> struct rebind { typedef StdUnitAllocatorAdapter<Allocator, U, Tag> other; };
118 …template <class U> StdUnitAllocatorAdapter(const StdUnitAllocatorAdapter<Allocator, U, Tag>&) thro… in StdUnitAllocatorAdapter() argument
129 static Allocator s_Allocator;
132 template <typename Allocator, typename Tag>
133 Allocator StdAllocatorAdapterHolder<Allocator, Tag>::s_Allocator;
135 template <typename Allocator, typename T, typename Tag>
136 Allocator StdUnitAllocatorAdapter<Allocator, T, Tag>::s_Allocator;