std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>:: flat_multimap
|
flat_multimap
(
)
: flat_multimap ( key_compare ( ) ) { } |
(1) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap ( const flat_multimap & , const Allocator & alloc ) ; |
(2) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap ( flat_multimap && , const Allocator & alloc ) ; |
(3) | (seit C++23) |
|
flat_multimap
(
key_container_type key_cont, mapped_container_type mapped_cont,
const key_compare & comp = key_compare ( ) ) ; |
(4) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
const
key_container_type
&
key_cont,
|
(5) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
const
key_container_type
&
key_cont,
|
(6) | (seit C++23) |
|
flat_multimap
(
std::
sorted_equivalent_t
, key_container_type key_cont,
mapped_container_type mapped_cont,
|
(7) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
std::
sorted_equivalent_t
,
const
key_container_type
&
key_cont,
|
(8) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
std::
sorted_equivalent_t
,
const
key_container_type
&
key_cont,
|
(9) | (seit C++23) |
|
explicit
flat_multimap
(
const
key_compare
&
comp
)
: c ( ) , compare ( comp ) { } |
(10) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap ( const key_compare & comp, const Allocator & alloc ) ; |
(11) | (seit C++23) |
|
template
<
class
Allocator
>
explicit flat_multimap ( const Allocator & alloc ) ; |
(12) | (seit C++23) |
|
template
<
class
InputIter
>
flat_multimap
(
InputIter first, InputIter last,
|
(13) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multimap
(
InputIter first, InputIter last,
|
(14) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multimap ( InputIter first, InputIter last, const Allocator & alloc ) ; |
(15) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multimap
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp
)
|
(16) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multimap
(
std::
from_range_t
fr, R
&&
rg
)
|
(17) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multimap ( std:: from_range_t , R && rg, const Allocator & alloc ) ; |
(18) | (seit C++23) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multimap
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp,
|
(19) | (seit C++23) |
|
template
<
class
InputIter
>
flat_multimap
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(20) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multimap
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(21) | (seit C++23) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multimap
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(22) | (seit C++23) |
|
flat_multimap
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(23) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp,
|
(24) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap ( std:: initializer_list < value_type > init, const Allocator & alloc ) ; |
(25) | (seit C++23) |
|
flat_multimap
(
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_multimap
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
|
(27) | (seit C++23) |
|
template
<
class
Allocator
>
flat_multimap
(
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 unter Verwendung des benutzerdefinierten Vergleichsfunktionsobjekts comp und/oder Allokators alloc .
c
mit der Kopie der Inhalte von
other.
c
und
compare
mit
other.
compare
.
Siehe
allocator usage note
unten.
c.keys
mit
std
::
move
(
key_cont
)
,
c.values
mit
std
::
move
(
mapped_cont
)
und
compare
mit
comp
. Sortiert anschließend den zugrundeliegenden Bereich
[
begin
(
)
,
end
(
)
)
bezüglich
value_comp()
.
c.keys
mit
std
::
move
(
key_cont
)
,
c.values
mit
std
::
move
(
mapped_cont
)
, und
compare
mit
comp
.
[
first
,
last
)
, äquivalent zu
insert
(
first, last
)
;
.
c
mit den Inhalten von
rg
als ob durch
insert_range
(
std::
forward
<
R
>
(
rg
)
)
;
.
[
first
,
last
)
als ob durch
insert
(
first, last
)
.
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)
entsprechen den entsprechenden Nicht-Allokator-Konstruktoren, mit der Ausnahme, dass die zugrundeliegenden Container
Parameter
Komplexität
1)
Konstante.
2)
Linear in der Größe von
other
.
3)
Gleich wie der entsprechende Move-Konstruktor des umschlossenen Containers, d.h. konstant oder linear in der Größe von
cont
.
4-6)
Linear in
N
if
cont
is sorted with respect to
value_comp()
, otherwise
𝓞(N·log(N))
, where
N
is the value of
key_cont.
size
(
)
before this call.
7-9)
Gleich wie der entsprechende Move-Konstruktor des umschlossenen Containers, d.h. konstant oder linear in der Größe von
cont
.
10-12)
Konstante.
13-15)
Linear in
N
if the input range
[
first
,
last
)
is sorted with respect to
value_comp()
, otherwise
𝓞(N·log(N))
, where
N
is the value of
key_cont.
size
(
)
before this call.
16-19)
Linear in
N
if the input range
rg
is sorted with respect to
value_comp()
, otherwise
𝓞(N·log(N))
, where
N
is the value of
key_cont.
size
(
)
before this call.
20-22)
Linear in der Größe von
[
first
,
last
)
.
23-25)
Linear in
N
if the elements of
init
are sorted with respect to
value_comp()
, otherwise
𝓞(N·log(N))
, where
N
is the value of
key_cont.
size
(
)
before this call.
26-28)
Linear in der Größe von
init
.
Ausnahmen
Aufrufe von
AnmerkungenNach einer Container-Verschiebungskonstruktion (Überladung (3)) bleiben Referenzen, Zeiger und Iteratoren, die ursprünglich auf Elemente in Beispiel
Siehe auch
| ||||||||||||||||||||||||||||||||||||||||||||||