Home
last modified time | relevance | path

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

/netbsd/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dnull_allocator.d9 struct NullAllocator struct
18 enum uint alignment = 64 * 1024;
23 void[] allocate(size_t) shared { return null; } in allocate()
25 void[] alignedAllocate(size_t, uint) shared { return null; } in alignedAllocate()
27 void[] allocateAll() shared { return null; } in allocateAll()
33 bool expand(ref void[] b, size_t s) shared in expand()
36 bool reallocate(ref void[] b, size_t) shared in reallocate()
62 Returns the $(D shared) global instance of the $(D NullAllocator). argument
64 static shared NullAllocator instance; argument
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dnull_allocator.d12 struct NullAllocator struct
23 enum uint alignment = 64 * 1024;
28 void[] allocate(size_t) shared { return null; } in allocate()
30 void[] alignedAllocate(size_t, uint) shared { return null; } in alignedAllocate()
32 void[] allocateAll() shared { return null; } in allocateAll()
38 bool expand(ref void[] b, size_t s) shared in expand()
41 bool reallocate(ref void[] b, size_t) shared in reallocate()
67 Returns the `shared` global instance of the `NullAllocator`. argument
69 static shared NullAllocator instance; argument