std::allocator_traits
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <memory>
|
||
| template< class Alloc > struct allocator_traits; |
(C + + 11以来) | |
allocator_traitsクラステンプレートは、アロケータのさまざまなプロパティにアクセスするための標準化された方法を提供します。標準コンテナとそれが可能allocator_traitsのユーザー提供の分業限り、アロケータとして任意のクラス型を使用するようになって、このテンプレートを介して他の標準ライブラリコンポーネントへのアクセスアロケータは、すべての必要な機能を実装しています.Original:
The
allocator_traits class template provides the standardized way to access various properties of allocators. The standard containers and other standard library components access allocators through this template, which makes it possible to use any class type as an allocator, as long as the user-provided specialization of allocator_traits implements all required functionality.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
デフォルトでは、非専門、
allocator_traitsは、次のメンバーが含まれますOriginal:
The default, non-specialized,
allocator_traits contains the following members:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] メンバータイプ
| タイプ
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
allocator_type
|
Alloc |
value_type
|
Alloc::value_type |
pointer
|
Alloc::pointer存在する場合、それ以外のvalue_type*
Original: Alloc::pointer if present, otherwise value_type* The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
const_pointer
|
Alloc::const_pointer存在する場合、それ以外のstd::pointer_traits<pointer>::rebind<const value_type>
Original: Alloc::const_pointer if present, otherwise std::pointer_traits<pointer>::rebind<const value_type> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
void_pointer
|
Alloc::void_pointer存在する場合、それ以外のstd::pointer_traits<pointer>::rebind<void>
Original: Alloc::void_pointer if present, otherwise std::pointer_traits<pointer>::rebind<void> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
const_void_pointer
|
Alloc::const_void_pointer存在する場合、それ以外のstd::pointer_traits<pointer>::rebind<const void>
Original: Alloc::const_void_pointer if present, otherwise std::pointer_traits<pointer>::rebind<const void> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
difference_type
|
Alloc::difference_type存在する場合、それ以外のstd::pointer_traits<pointer>::difference_type
Original: Alloc::difference_type if present, otherwise std::pointer_traits<pointer>::difference_type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
size_type
|
Alloc::size_type存在する場合、それ以外のstd::make_unsigned<difference_type>::type
Original: Alloc::size_type if present, otherwise std::make_unsigned<difference_type>::type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
propagate_on_container_copy_assignment
|
Alloc::propagate_on_container_copy_assignment存在する場合、それ以外のstd::false_type
Original: Alloc::propagate_on_container_copy_assignment if present, otherwise std::false_type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
propagate_on_container_move_assignment
|
Alloc::propagate_on_container_move_assignment存在する場合、それ以外のstd::false_type
Original: Alloc::propagate_on_container_move_assignment if present, otherwise std::false_type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
propagate_on_container_swap
|
Alloc::propagate_on_container_swap存在する場合、それ以外のstd::false_type
Original: Alloc::propagate_on_container_swap if present, otherwise std::false_type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] メンバーの別名のテンプレート
| タイプ
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
rebind_alloc<T>
|
Alloc::rebind<T>::other存在する場合、それ以外のAlloc<T, Args>このアロケーションがAlloc<U, Args>ある場合
Original: Alloc::rebind<T>::other if present, otherwise Alloc<T, Args> if this Alloc is Alloc<U, Args> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
rebind_traits<T>
|
std::allocator_traits<rebind_alloc<T>> |
[編集] メンバ関数
| [静的] |
アロケータを使用して初期化されていないストレージが割り当てられます Original: allocates uninitialized storage using the allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ関数) |
| [静的] |
アロケータを使用して、ストレージの割り当てを解除します Original: deallocates storage using the allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ関数) |
| [静的] |
割り振られたストレージ内のオブジェクトを構築します Original: constructs an object in the allocated storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
| [静的] |
割り当てられたストレージに格納されているオブジェクトを破棄します Original: destructs an object stored in the allocated storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
| [静的] |
アロケータでサポートされているオブジェクトの最大サイズを返します Original: returns the maximum object size supported by the allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ関数) |
| 標準コンテナをコピーした後で使用するアロケータを取得します Original: obtains the allocator to use after copying a standard container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ関数) | |
[編集] も参照してください
| the default allocator (クラステンプレート) | |
| (C++11) |
マルチレベルのコンテナのためのマルチレベルのアロケータを実装しています Original: implements multi-level allocator for multi-level containers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
| (C++11) |
ポインタのようなタイプの情報を提供します Original: provides information about pointer-like types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |