std::uses_allocator
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <memory>
|
||
template< class T, class Alloc > struct uses_allocator |
(C++11およびそれ以降) | |
T
はallocator_type
から変換可能なメンバのtypedefAlloc
を持っている場合は、会員が一定提供value
trueに等しい。さもなければvalue
ですfalse.Original:
If
T
has a member typedef allocator_type
which is convertible from Alloc
, provides the member constant value
equal to true. Otherwise value
is false.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.
目次 |
Inherited from std::integral_constant
Member constants
value [静的] |
true T uses allocator Alloc もし、そうでなければfalse Original: true if T uses allocator Alloc , false otherwise The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ定数) |
Member functions
operator bool |
boolにオブジェクトは、 value 返しに変換します Original: converts the object to bool, returns value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
Member types
タイプ
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 |
value_type
|
bool
|
type
|
std::integral_constant<bool, value> |
[編集] スペシャ
型形質std::uses_allocatorのカスタムな特殊化は、メンバのtypedef
1) allocator_type
を持っていますが、次の2つの要件のいずれかを満たしていないタイプのために許可されていますOriginal:
Custom specializations of the type trait std::uses_allocator are allowed for types that do not have the member typedef
allocator_type
but satisfy one of the following two requirements: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.
T
第二引数は、最初の引数、およびstd::allocator_arg_tとしてAlloc
を取るコンストラクタを持ってい.Original:
T
has a constructor which takes std::allocator_arg_t as the first argument, and Alloc
as the second argument.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.
T
最後の引数としてAlloc
を取るコンストラクタを持ってい.Original:
T
has a constructor which takes Alloc
as the last argument.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:
The following specializations are already provided by the standard library:
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.
std::uses_allocator型特性の特殊化です。 (クラステンプレートの特殊化の2つの値を比較します) | |
notes=(C++11) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレートの特殊化の2つの値を比較します) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレートの特殊化の2つの値を比較します) | |
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレートの特殊化の2つの値を比較します) |
[編集] ノート
このタイプの形質はstd::scoped_allocator_adaptorによって使用され、構築されたオブジェクトがアロケータは、そのコンストラクタに渡される必要があり、その場合、アロケータを(たとえば、コンテナである)、使用できる自体であるかどうかを判断するために、カスタムアロケータによって使用されるかもしれません.
Original:
This type trait is used by std::scoped_allocator_adaptor and may be used by custom allocators to determine whether the object being constructed is itself capable of using an allocator (e.g. is a container), in which case an allocator should be passed to its constructor.
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.
[編集] 参照
(C++11) |
型のオブジェクトstd::allocator_arg_tはアロケータ対応のコンストラクタを選択するために使用する Original: an object of type std::allocator_arg_t used to select allocator-aware constructors 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: tag type used to select allocator-aware constructor overloads 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: 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. (クラステンプレート) |