Namespaces
Variants

std:: uses_allocator <std::flat_multiset>

From cppreference.net

定義先ヘッダ <flat_set>
template < class Key, class Compare, class KeyContainer, class Allocator >

struct uses_allocator < std:: flat_multiset < Key, Compare, KeyContainer > , Allocator >

: std:: bool_constant < std:: uses_allocator_v < KeyContainer, Allocator >> { } ;
(C++23以降)

std::uses_allocator 型特性に対する透過的な特殊化を提供します。これは std:: flat_multiset に対して行われます:コンテナアダプタは、基底となるコンテナがアロケータを使用する場合にのみアロケータを使用します。

目次

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 <flat_set>
static_assert(
    std::uses_allocator<std::flat_multiset<int>, void>::value == false &&
    std::uses_allocator<std::flat_multiset<int>, std::allocator<int>>::value == true
);
int main() {}

関連項目

指定された型がuses-allocator構築をサポートするかどうかをチェックする
(クラステンプレート)