namespace std {
template <class Key, class T, class Compare, class KeyContainer,
class Alloc>
struct uses_allocator<flat_multiset<Key, T, Compare, KeyContainer>,
Alloc>
: bool_constant<uses_allocator_v<KeyContainer, Alloc>> { };
}
概要
uses_allocator
の、flat_multiset
に対する特殊化。
アロケータを指定するflat_multiset
のコンストラクタ
において、指定されたアロケータと、KeyContainer
のアロケータが合致するかをチェックするのに使われる。
例
#include <flat_set>
#include <iostream>
int main()
{
using fs_t = std::flat_multiset<int>;
std::cout << std::uses_allocator<fs_t, std::allocator<int>>::value << std::endl;
}
出力
1
バージョン
言語
- C++23
処理系
- Clang: ??
- GCC: ??
- Visual C++: ??