(C++17) | ||||
| Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(C++26) | ||||
(C++11) | ||||
| Associative | ||||
| Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Adaptors | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Views | ||||
(C++20) | ||||
(C++23) | ||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
| Member types | ||||
| Member functions | ||||
| Helper classes | ||||
uses_allocator<std::flat_set> | ||||
| Tags | ||||
| Deduction guides | ||||
Defined in header <flat_set> | ||
template<class Key,class Compare,class KeyContainer,class Allocator> struct uses_allocator<std::flat_set<Key, Compare, KeyContainer>, Allocator> | (since C++23) | |
Provides a transparent specialization of thestd::uses_allocator type trait forstd::flat_set: the container adaptor uses allocator if and only if the underlying container does.
Contents |
value [static] | true (public static member constant) |
operator bool | converts the object tobool, returnsvalue (public member function) |
operator() (C++14) | returnsvalue (public member function) |
| Type | Definition |
value_type | bool |
type | std::integral_constant<bool, value> |
#include <memory>#include <flat_set> static_assert(std::uses_allocator<std::flat_set<int>,void>::value==false&&std::uses_allocator<std::flat_set<int>,std::allocator<int>>::value==true); int main(){}
(C++11) | checks if the specified type supports uses-allocator construction (class template)[edit] |