std:: uses_allocator <std::stack>
|
ヘッダーで定義
<stack>
|
||
|
template
<
class
T,
class
Container,
class
Alloc
>
struct
uses_allocator
<
std::
stack
<
T, Container
>
, Alloc
>
|
(C++11以降) | |
std::uses_allocator 型特性の透過的な特殊化を提供します: std:: stack に対して、このコンテナアダプタは基底コンテナがアロケータを使用する場合に限りアロケータを使用します。
目次 |
std:: integral_constant からの継承
メンバ定数
|
value
[static]
|
true
(public static member constant) |
メンバ関数
|
operator bool
|
オブジェクトを
bool
に変換し、
value
を返す
(public member function) |
|
operator()
(C++14)
|
value
を返す
(public member function) |
メンバ型
| 型 | 定義 |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
例
#include <memory> #include <stack> static_assert( std::uses_allocator<std::stack<int>, void>::value == false && std::uses_allocator<std::stack<int>, std::allocator<int>>::value == true ); int main() {}
関連項目
|
(C++11)
|
指定された型がuses-allocator構築をサポートするかどうかをチェックする
(クラステンプレート) |