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.
		
	core.stdcpp.allocator
D binding to C++ std::allocator.
License: 
Distributed under the
      Boost Software License 1.0.
    (See accompanying file LICENSE)
Authors: 
Manu Evans
Source core/stdcpp/allocator.d
- structallocator(T);
- Allocators are classes that define memory models to be used by some parts of the C++ Standard Library, and most specifically, by STL containers.- this(U)(ref allocator!U);
- aliassize_type= size_t;
- aliasdifference_type= ptrdiff_t;
- aliaspointer= T*;
- aliasvalue_type= T;
- enum autopropagate_on_container_move_assignment;
- enum autois_always_equal;
- templaterebind(U)
- @nogc T*allocate(size_tcount);
- @nogc voiddeallocate(T*ptr, size_tcount);
- enum size_tmax_size;
 
- structallocator_traits(Alloc);
- 
- aliasallocator_type= Alloc;
- aliasvalue_type= allocator_type.value_type;
- aliassize_type= allocator_type.size_type;
- aliasdifference_type= allocator_type.difference_type;
- aliaspointer= allocator_type.pointer;
- enum autopropagate_on_container_copy_assignment;
- enum autopropagate_on_container_move_assignment;
- enum autopropagate_on_container_swap;
- enum autois_always_equal;
- templaterebind_alloc(U)
- templaterebind_traits(U)
- size_typemax_size()(auto ref allocator_typea);
- allocator_typeselect_on_container_copy_construction()(auto ref allocator_typea);
 
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:36 2025