Ableitungs-Guides für std::flat_set
| Definiert in Header <flat_set> |
||
| template< class KeyContainer, class Compare = std::less<typename KeyContainer::value_type> > |
(1) | (seit C++23) |
| template< class KeyContainer, class Allocator > flat_set( KeyContainer, Allocator ) |
(2) | (seit C++23) |
| template< class KeyContainer, class Compare, class Allocator > flat_set( KeyContainer, Compare, Allocator ) |
(3) | (seit C++23) |
| template< class KeyContainer, class Compare = std::less<typename KeyContainer::value_type> > |
(4) | (seit C++23) |
| template< class KeyContainer, class Allocator > flat_set( std::sorted_unique_t, KeyContainer, Allocator ) |
(5) | (seit C++23) |
| template< class KeyContainer, class Compare, class Allocator > flat_set( std::sorted_unique_t, KeyContainer, Compare, Allocator ) |
(6) | (seit C++23) |
| template< class InputIter, class Compare = std::less</*iter-value-type*/<InputIter>> > |
(7) | (seit C++23) |
| template< class InputIter, class Compare = std::less</*iter-value-type*/<InputIter>> > |
(8) | (seit C++23) |
| template< ranges::input_range R, class Compare = std::less<ranges::range_value_t<R>>, |
(9) | (seit C++23) |
| template< ranges::input_range R, class Allocator > flat_set( std::from_range_t, R&&, Allocator ) |
(10) | (seit C++23) |
| template< class Key, class Compare = std::less<Key> > flat_set( std::initializer_list<Key>, Compare = Compare() ) |
(11) | (seit C++23) |
| template< class Key, class Compare = std::less<Key> > flat_set( std::sorted_unique_t, |
(12) | (seit C++23) |
Diese Ableitungs-Guides werden für bereitgestellt, um die Ableitung von Folgendem zu ermöglichen:
std::sorted_unique_t, ein Container und ein Komparator.std::sorted_unique_t, ein Container und ein Allokator.std::sorted_unique_t, ein Container, ein Komparator und ein Allokator.std::sorted_unique_t, ein Iterator-Bereich und ein Komparator.Diese Überladungen nehmen an der Überladungsauflösung teil, nur wenn InputIt LegacyInputIterator erfüllt, Alloc Allocator erfüllt und Comp Allocator nicht erfüllt.
Hinweis: Das Ausmaß, in dem die Bibliothek bestimmt, dass ein Typ LegacyInputIterator nicht erfüllt, ist nicht spezifiziert, mit Ausnahme dessen, dass ganzzahlige Typen als Eingabeiteratoren nicht qualifiziert sind. Ebenso ist das Ausmaß, in dem bestimmt wird, dass ein Typ Allocator nicht erfüllt, nicht spezifiziert, mit Ausnahme dessen, dass als Minimum der Mitgliedstyp Alloc::value_type existieren muss und der Ausdruck std::declval<Alloc&>().allocate(std::size_t{}) gut geformt sein muss, wenn er als nicht ausgewerteter Operand behandelt wird.
[bearbeiten] Beispiel
| Dieser Abschnitt ist unvollständig Grund: kein Beispiel |