Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

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 usinga local clone.

core.stdcpp.allocator

D binding to C++ std::allocator.
License:
Distributed under theBoost Software License 1.0. (See accompanying file LICENSE)
Authors:
Manu Evans

Sourcecore/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-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 04:06:26 2026

[8]ページ先頭

©2009-2026 Movatter.jp