Report a bug
		
				If you spot a problem with this page, click here to create a Bugzilla issue.
		
			Improve this page
		
			Quickly fork, edit online, and submit a pull request for this page.
			Requires a signed-in GitHub account. This works well for small changes.
			If you'd like to make larger changes you may want to consider using
			a local clone.
		
	std.experimental.allocator.building_blocks.null_allocator
- structNullAllocator;
- NullAllocatoris an emphatically empty implementation of the allocator interface. Although it has no direct use, it is useful as a "terminator" in composite allocators.- enum uintalignment;
- NullAllocator advertises a relatively large alignment equal to 64 KB. This is because NullAllocator never actually needs to honor this alignment and because composite allocators using NullAllocator shouldn't be unnecessarily constrained.
- shared pure nothrow @nogc @safe void[]allocate(size_t);
- Always returns null.
- shared pure nothrow @nogc @safe void[]alignedAllocate(size_t, uint);
- Always returns null.
- shared pure nothrow @nogc @safe void[]allocateAll();
- Always returns null.
- shared pure nothrow @nogc @safe boolexpand(ref void[]b, size_ts);
 shared pure nothrow @nogc @safe boolreallocate(ref void[]b, size_t);
 shared pure nothrow @nogc @safe boolalignedReallocate(ref void[]b, size_t, uint);
- These methods return false.Precondition b is null. This is because there is no other possible legitimate input. 
- shared const pure nothrow @nogc @safe Ternaryowns(const void[]);
- Returns Ternary.no.
- shared const pure nothrow @nogc @safe TernaryresolveInternalPointer(const void*, ref void[]);
- Returns Ternary.no.
- shared pure nothrow @nogc @safe booldeallocate(void[]b);
- No-op.Precondition b is null 
- shared pure nothrow @nogc @safe booldeallocateAll();
- No-op.
- shared const pure nothrow @nogc @safe Ternaryempty();
- Returns Ternary.yes.
- static shared NullAllocatorinstance;
- Returns the shared global instance of the NullAllocator.
 
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on (no date time)