std::flat_multiset<Key,Compare,KeyContainer>:: flat_multiset
|
flat_multiset
(
)
: flat_multiset ( key_compare ( ) ) { } |
(1) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset ( const flat_multiset & other, const Allocator & alloc ) ; |
(2) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset ( flat_multiset && other, const Allocator & alloc ) ; |
(3) | (seit C++23) |
|
explicit
flat_multiset
(
container_type cont,
const key_compare & comp = key_compare ( ) ) ; |
(4) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset ( const container_type & cont, const Allocator & alloc ) ; |
(5) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
const
container_type
&
cont,
const
key_compare
&
comp,
|
(6) | (seit C++23) |
|
flat_multiset
(
std::
sorted_equivalent_t
s, container_type cont,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(7) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
const
container_type
&
cont,
|
(8) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
const
container_type
&
cont,
|
(9) | (seit C++23) |
|
explicit
flat_multiset
(
const
key_compare
&
comp
)
: c ( ) , compare ( comp ) { } |
(10) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset ( const key_compare & comp, const Allocator & alloc ) ; |
(11) | (seit C++23) |
|
template
<
class
Allocator
>
explicit flat_multiset ( const Allocator & alloc ) ; |
(12) | (seit C++23) |
|
template
<
class
InputIter
>
flat_multiset
(
InputIter first, InputIter last,
|
(13) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
InputIter first, InputIter last,
|
(14) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset ( InputIter first, InputIter last, const Allocator & alloc ) ; |
(15) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multiset
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp
)
|
(16) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multiset
(
std::
from_range_t
fr, R
&&
rg
)
|
(17) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multiset ( std:: from_range_t , R && rg, const Allocator & alloc ) ; |
(18) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multiset
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp,
|
(19) | (seit C++23) |
|
template
<
class
InputIter
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(20) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(21) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(22) | (seit C++23) |
|
flat_multiset
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(23) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp,
|
(24) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset ( std:: initializer_list < value_type > init, const Allocator & alloc ) ; |
(25) | (seit C++23) |
|
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(26) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
|
(27) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
|
(28) | (seit C++23) |
Konstruiert einen neuen Container-Adapter aus verschiedenen Datenquellen und optional bereitgestelltem Vergleichsfunktionsobjekt comp und/oder Allokator alloc .
c
mit der Kopie der Inhalte von
other.
c
und
compare
mit
other.
compare
.
Siehe
allocator usage note
unten.
c
mit
std
::
move
(
cont
)
und
compare
mit
comp
. Sortiert anschließend
c
bezüglich
comp
.
c
mit
std
::
move
(
cont
)
und
compare
mit
comp
.
[
first
,
last
)
, was äquivalent ist zu
insert
(
first, last
)
;
.
c
mit den Inhalten von
rg
als ob durch
insert_range
(
std::
forward
<
R
>
(
rg
)
)
;
.
[
first
,
last
)
. Initialisiert
c
mit
c
(
first, last
)
und
compare
mit
compare
(
comp
)
.
Hinweis für Überladungen
(13-15,20-22)
: Wenn
[
first
,
last
)
kein
gültiger Bereich
ist, ist das Verhalten undefiniert.
Inhaltsverzeichnis |
Hinweise zur Allocator-Verwendung
Die Konstruktoren
(2,3,5,6,8,9,11,12,14,15,17,19,21,22,24,25,27,28)
sind äquivalent zu den entsprechenden Nicht-Allokator-Konstruktoren, außer dass
c
mit
Uses-Allocator-Konstruktion
erstellt wird.
Diese Überladungen nehmen nur dann an der Überladungsauflösung teil, wenn
std::
uses_allocator_v
<
container_type, Allocator
>
true
ist.
Parameter
| cont | - | ein Container, der als Quelle zur Initialisierung des zugrundeliegenden Containers verwendet wird |
| other | - |
ein weiteres
flat_multiset
, das als Quelle zur Initialisierung der Elemente des zugrundeliegenden Containers verwendet wird
|
| alloc | - | ein Allokator, der für alle Speicherallokationen des zugrundeliegenden Containers verwendet wird |
| comp | - | ein Funktionsobjekt, das für alle Schlüsselvergleiche verwendet wird |
| first, last | - | das Iteratorpaar, das die Quell- Range der zu kopierenden Elemente definiert |
| init | - | eine Initialisierungsliste zur Initialisierung der Elemente des zugrundeliegenden Containers |
| rg | - |
eine
container-kompatible Range
(d.h. eine
input_range
, deren Elemente in
value_type
konvertierbar sind) als Quelle zur Initialisierung des zugrundeliegenden Containers
|
| fr | - | ein Unterscheidungs-Tag , das anzeigt, dass das enthaltene Element per Range-Konstruktor erstellt werden soll |
| s | - |
ein
Unterscheidungs-Tag
, das anzeigt, dass die Eingabesequenz bezüglich
compare
sortiert ist
|
| Typanforderungen | ||
-
InputIt
muss die Anforderungen von
LegacyInputIterator
erfüllen.
|
||
-
Compare
muss die Anforderungen von
Compare
erfüllen.
|
||
-
Allocator
muss die Anforderungen von
Allocator
erfüllen.
|
||
Komplexität
[
first
,
last
)
bezüglich
compare
sortiert ist, andernfalls
𝓞(N·log(N))
, wobei
N
der Wert von
cont.
size
(
)
vor diesem Aufruf ist.
[
first
,
last
)
.
Ausnahmen
Aufrufe von
Allocator::allocate
können eine Ausnahme auslösen.
Hinweise
Nach Container-Verschiebekonstruktion (Überladung ( 3 ) ) bleiben Referenzen, Zeiger und Iteratoren (außer dem End-Iterator) auf other gültig, verweisen jedoch auf Elemente, die sich nun in * this befinden. Der aktuelle Standard gibt diese Garantie über die pauschale Aussage in [container.reqmts]/67 , und eine direktere Garantie wird via LWG issue 2321 geprüft.
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |
Siehe auch
|
weist Werte dem Container-Adapter zu
(öffentliche Elementfunktion) |