Searched defs:MyAllocator (Results 1 – 1 of 1) sorted by relevance
35 struct MyAllocator { struct42 MyAllocator() = default; argument43 MyAllocator(int i) : id(i) {} in MyAllocator() argument46 MyAllocator(MyAllocator<U> const& other) : id(other.id) {} in MyAllocator() argument48 pointer allocate(std::ptrdiff_t n) { in allocate()52 void deallocate(pointer p, std::ptrdiff_t) { return ::operator delete(p); } in deallocate()55 void construct(T* p, Args&& ...args) { in construct()62 void destroy(T* p) { in destroy()