Home
last modified time | relevance | path

Searched defs:MyAllocator (Results 1 – 1 of 1) sorted by relevance

/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
H A Dallocate_shared.lwg2070.pass.cpp35 struct MyAllocator { struct
42 MyAllocator() = default; argument
43 MyAllocator(int i) : id(i) {} in MyAllocator() argument
46 MyAllocator(MyAllocator<U> const& other) : id(other.id) {} in MyAllocator() argument
48 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()