• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/libsecurity_utilities/lib/

Lines Matching defs:Allocator

43 class Allocator {
45 virtual ~Allocator();
83 virtual bool operator == (const Allocator &alloc) const throw();
92 static Allocator &standard(UInt32 request = normal);
97 // You'd think that this is operator delete(const T *, Allocator &), but you'd
102 inline void destroy(T *obj, Allocator &alloc) throw()
109 inline void destroy(void *obj, Allocator &alloc) throw()
117 // To allow allocation (of your object) from any instance of Allocator,
130 void *operator new (size_t size, Allocator *alloc = NULL) throw(std::bad_alloc);
132 void operator delete (void *addr, size_t size, Allocator *alloc) throw();
146 Allocator &allocator;
148 CssmAutoPtr(Allocator &alloc = Allocator::standard())
150 CssmAutoPtr(Allocator &alloc, T *p)
153 : allocator(Allocator::standard()), mine(p) { }
156 template <class T1> CssmAutoPtr(Allocator &alloc, CssmAutoPtr<T1> &src)
177 Allocator &allocator;
179 CssmAutoPtr(Allocator &alloc) : allocator(alloc), mine(NULL) { }
180 CssmAutoPtr(Allocator &alloc, void *p) : allocator(alloc), mine(p) { }
183 template <class T1> CssmAutoPtr(Allocator &alloc, CssmAutoPtr<T1> &src)
203 CssmNewAutoPtr(Allocator &alloc = Allocator::standard())
207 CssmNewAutoPtr(Allocator &alloc, A1 &arg1) : CssmAutoPtr<T>(alloc, new(alloc) T(arg1)) { }
209 CssmNewAutoPtr(Allocator &alloc, const A1 &arg1)
213 CssmNewAutoPtr(Allocator &alloc, A1 &arg1, A2 &arg2)
216 CssmNewAutoPtr(Allocator &alloc, const A1 &arg1, A2 &arg2)
219 CssmNewAutoPtr(Allocator &alloc, A1 &arg1, const A2 &arg2)
222 CssmNewAutoPtr(Allocator &alloc, const A1 &arg1, const A2 &arg2)
233 inline void *operator new (size_t size, Allocator &allocator) throw (std::bad_alloc)
236 inline void *operator new[] (size_t size, Allocator &allocator) throw (std::bad_alloc)