std::uses_allocator<std::flat_multimap>
From cppreference.com
 
 
 < cpp | container | flat multimap 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Containers library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
 Tables
std::flat_multimap 
 
 
 
 
 
 
uses_allocator<std::flat_multimap>
Defined in header 
 
 
<flat_map> 
 template< class Key, class T, class Compare,
 
 (since C++23) 
          class KeyContainer, class MappedContainer, class Allocator >
struct uses_allocator<std::flat_multimap <Key, T, Compare,
                      KeyContainer, MappedContainer>, Allocator>
    : std::bool_constant <std::uses_allocator_v <KeyContainer, Allocator> &&
Provides a transparent specialization of the std::uses_allocator type trait for std::flat_multimap : the container adaptor uses allocator if and only if the underlying container does.
Contents
Inherited from std::integral_constant
Member constants
value
[static]
(public static member constant)
Member functions
operator bool
(public member function)
operator()
(C++14)
(public member function)
Member types
 Type
 Definition
value_type
 bool
type
 std::integral_constant <bool, value>
[edit] Example
Run this code
#include <memory> #include <flat_map> static_assert( std::uses_allocator <std::flat_multimap <int, int>, void>::value == false && std::uses_allocator <std::flat_multimap <int, int>, std::allocator <int>>::value == true ); int main() {}