Guías de deducción para std::flat_multiset
| Definido en el archivo de encabezado <flat_set>
|
||
template< class KeyContainer,
class Compare = std::less<typename KeyContainer::value_type> >
flat_multiset( KeyContainer, Compare = Compare() )
-> flat_multiset<typename KeyContainer::value_type, Compare, KeyContainer>;
|
(1) | (desde C++23) |
template< class KeyContainer, class Allocator >
flat_multiset( KeyContainer, Allocator )
-> flat_multiset<typename KeyContainer::value_type,
{{#pad:|13}} std::less<typename KeyContainer::value_type>, KeyContainer>;
|
(2) | (desde C++23) |
template< class KeyContainer, class Compare, class Allocator >
flat_multiset( KeyContainer, Compare, Allocator )
-> flat_multiset<typename KeyContainer::value_type, Compare, KeyContainer>;
|
(3) | (desde C++23) |
template< class KeyContainer,
class Compare = std::less<typename KeyContainer::value_type> >
flat_multiset( std::sorted_equivalent_t, KeyContainer, Compare = Compare() )
-> flat_multiset<typename KeyContainer::value_type, Compare, KeyContainer>;
|
(4) | (desde C++23) |
template< class KeyContainer, class Allocator >
flat_multiset( std::sorted_equivalent_t, KeyContainer, Allocator )
-> flat_multiset<typename KeyContainer::value_type,
{{#pad:|13}} std::less<typename KeyContainer::value_type>, KeyContainer>;
|
(5) | (desde C++23) |
template< class KeyContainer, class Compare, class Allocator >
flat_multiset( std::sorted_equivalent_t, KeyContainer, Compare, Allocator )
-> flat_multiset<typename KeyContainer::value_type, Compare, KeyContainer>;
|
(6) | (desde C++23) |
template< class InputIter,
class Compare = std::less</*iter-value-type*/<InputIter>> >
flat_multiset( InputIter, InputIter, Compare = Compare() )
-> flat_multiset</*iter-value-type*/<InputIter>, Compare>;
|
(7) | (desde C++23) |
template< class InputIter,
class Compare = std::less</*iter-value-type*/<InputIter>> >
flat_multiset( std::sorted_equivalent_t, InputIter, InputIter, Compare = Compare() )
-> flat_multiset</*iter-value-type*/<InputIter>, Compare>;
|
(8) | (desde C++23) |
template< ranges::input_range R,
class Compare = std::less<ranges::range_value_t<R>>,
class Allocator = std::allocator<ranges::range_value_t<R>> >
flat_multiset( std::from_range_t, R&&, Compare = Compare(), Allocator = Allocator() )
-> flat_multiset<ranges::range_value_t<R>, Compare,
{{#pad:|13}} std::vector<ranges::range_value_t<R>,
{{#pad:|13}} /*alloc-rebind*/<Allocator, ranges::range_value_t<R>>>>;
|
(9) | (desde C++23) |
template< ranges::input_range R, class Allocator >
flat_multiset( std::from_range_t, R&&, Allocator )
-> flat_multiset<ranges::range_value_t<R>, std::less<ranges::range_value_t<R>>,
{{#pad:|13}} std::vector<ranges::range_value_t<R>,
{{#pad:|13}} /*alloc-rebind*/<Allocator, ranges::range_value_t<R>>>>;
|
(10) | (desde C++23) |
template< class Key, class Compare = std::less<Key> >
flat_multiset( std::initializer_list<Key>, Compare = Compare() )
-> flat_multiset<Key, Compare>;
|
(11) | (desde C++23) |
template< class Key, class Compare = std::less<Key> >
flat_multiset( std::sorted_equivalent_t,
std::initializer_list<Key>, Compare = Compare() )
-> flat_multiset<Key, Compare>;
|
(12) | (desde C++23) |
Estas guías de deducción se proporcionan para para permitir la deducción a partir de:
Estas sobrecargas solo participan en la resolución de sobrecargas si InputIt satisface IteradorDeEntradaLegado, Alloc satisface Asignador y Comp no satisface Asignador.
Nota: no se especifica hasta qué grado la biblioteca determina que un tipo no satisface a IteradorDeEntradaLegado, excepto que, como mínimo, los tipos enteros no califican como iteradores de entrada. Del mismo modo, no se especifica en qué medida se determina que un tipo no satisface a Allocator, excepto que, como mínimo, el tipo miembro Alloc::value_type debe existir y la expresión std::declval<Alloc &>().allocate(std::size_t{}) debe estar bien formada cuando se trate como un operando no evaluado.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |