Lines Matching refs:Allocator

56 template <typename Allocator, typename Tag>
61 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
62 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
65 static Allocator s_Allocator;
68 template <typename Allocator, typename T, typename Tag = void>
69 class StdAllocatorAdapter : public StdAllocatorAdapterHolder<Allocator, Tag>
80 template <class U> struct rebind { typedef StdAllocatorAdapter<Allocator, U, Tag> other; };
83 template <class U> StdAllocatorAdapter(const StdAllocatorAdapter<Allocator, U, Tag>&) throw() {} in StdAllocatorAdapter() argument
87 …e_type n, void* = 0) { return static_cast<T*>(StdAllocatorAdapterHolder<Allocator, Tag>::GetAlloca…
88 …void deallocate(pointer p, size_type) { StdAllocatorAdapterHolder<Allocator, Tag>::GetAllocator()-… in deallocate()
95 template <typename Allocator, typename T, typename Tag = void>
100 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
101 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
110 template <class U> struct rebind { typedef StdUnitAllocatorAdapter<Allocator, U, Tag> other; };
113 …template <class U> StdUnitAllocatorAdapter(const StdUnitAllocatorAdapter<Allocator, U, Tag>&) thro… in StdUnitAllocatorAdapter() argument
124 static Allocator s_Allocator;
127 template <typename Allocator, typename Tag>
128 Allocator StdAllocatorAdapterHolder<Allocator, Tag>::s_Allocator;
130 template <typename Allocator, typename T, typename Tag>
131 Allocator StdUnitAllocatorAdapter<Allocator, T, Tag>::s_Allocator;