Lines Matching defs:StackAllocator
23 //The following members are shared among all StackAllocator instance created from
24 //a reference StackAllocator instance:
47 struct StackAllocator
53 : public __STD __stlport_class<StackAllocator<_Tp> >
65 StackAllocator(){}
68 StackAllocator(char *beg, char *end)
74 StackAllocator(StackAllocator<_OtherTp> const& other)
77 StackAllocator(const State& state)
84 typedef StackAllocator<_Other> other;
111 //Necessary extension to make StackAllocator a real STLport allocator
148 void swap(StackAllocator &other) {
155 void _M_swap_workaround(StackAllocator& __x) { swap(__x); }
158 //2 StackAllocator instance are identical if they are built on top
160 bool operator == (StackAllocator const& other) const
163 bool operator != (StackAllocator const& other) const
176 inline StackAllocator<_Tp2>&
177 __stl_alloc_rebind(StackAllocator<_Tp1>& __a, const _Tp2*) { return (StackAllocator<_Tp2>&)(__a); }
179 inline StackAllocator<_Tp2>
180 __stl_alloc_create(const StackAllocator<_Tp1>& __a, const _Tp2*) { return StackAllocator<_Tp2>(__a.getState()); }
185 inline void swap(StackAllocator<_Tp>& __a, StackAllocator<_Tp>& __b)
189 //with new StackAllocator instanciations associated swap overload should also be
191 inline void swap(StackAllocator<int>& __a, StackAllocator<int>& __b)
193 inline void swap(StackAllocator<char>& __a, StackAllocator<char>& __b)
195 inline void swap(StackAllocator<pair<const int, int> >& __a,
196 StackAllocator<pair<const int, int> >& __b)