std::flat_multiset<Key,Compare,KeyContainer>:: flat_multiset
|
flat_multiset
(
)
: flat_multiset ( key_compare ( ) ) { } |
(1) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset ( const flat_multiset & other, const Allocator & alloc ) ; |
(2) | (C++23부터) |
|
template
<
class
Allocator
>
flat_multiset ( flat_multiset && other, const Allocator & alloc ) ; |
(3) | (C++23 이후) |
|
explicit
flat_multiset
(
container_type cont,
const key_compare & comp = key_compare ( ) ) ; |
(4) | (C++23부터) |
|
template
<
class
Allocator
>
flat_multiset ( const container_type & cont, const Allocator & alloc ) ; |
(5) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset
(
const
container_type
&
cont,
const
key_compare
&
comp,
|
(6) | (C++23 이후) |
|
flat_multiset
(
std::
sorted_equivalent_t
s, container_type cont,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(7) | (C++23부터) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
const
container_type
&
cont,
|
(8) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
const
container_type
&
cont,
|
(9) | (C++23 이후) |
|
explicit
flat_multiset
(
const
key_compare
&
comp
)
: c ( ) , compare ( comp ) { } |
(10) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset ( const key_compare & comp, const Allocator & alloc ) ; |
(11) | (C++23 이후) |
|
template
<
class
Allocator
>
explicit flat_multiset ( const Allocator & alloc ) ; |
(12) | (C++23 이후) |
|
template
<
class
InputIter
>
flat_multiset
(
InputIter first, InputIter last,
|
(13) | (C++23 이후) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
InputIter first, InputIter last,
|
(14) | (C++23 이후) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset ( InputIter first, InputIter last, const Allocator & alloc ) ; |
(15) | (C++23 이후) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multiset
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp
)
|
(16) | (C++23 이후) |
|
template
<
container-compatible-range
<
value_type
>
R
>
flat_multiset
(
std::
from_range_t
fr, R
&&
rg
)
|
(17) | (C++23 이후) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multiset ( std:: from_range_t , R && rg, const Allocator & alloc ) ; |
(18) | (C++23부터) |
|
template
<
container-compatible-range
<
value_type
>
R,
class
Allocator
>
flat_multiset
(
std::
from_range_t
, R
&&
rg,
const
key_compare
&
comp,
|
(19) | (C++23 이후) |
|
template
<
class
InputIter
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(20) | (C++23 이후) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(21) | (C++23부터) |
|
template
<
class
InputIter,
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s, InputIter first, InputIter last,
|
(22) | (C++23 이후) |
|
flat_multiset
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(23) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp,
|
(24) | (C++23부터) |
|
template
<
class
Allocator
>
flat_multiset ( std:: initializer_list < value_type > init, const Allocator & alloc ) ; |
(25) | (C++23 이후) |
|
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
const
key_compare
&
comp
=
key_compare
(
)
)
|
(26) | (C++23 이후) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
|
(27) | (C++23부터) |
|
template
<
class
Allocator
>
flat_multiset
(
std::
sorted_equivalent_t
s,
std::
initializer_list
<
value_type
>
init,
|
(28) | (C++23 이후) |
다양한 데이터 소스와 선택적으로 제공된 비교 함수 객체 comp 및/또는 할당자 alloc 로부터 새로운 컨테이너 어댑터를 생성합니다.
c
를
std
::
move
(
cont
)
로 초기화하고
compare
를
comp
로 초기화합니다. 그런 다음
c
를
comp
를 기준으로 정렬합니다.
[
first
,
last
)
의 내용으로 생성하며, 이는
insert
(
first, last
)
;
와 동등합니다.
c
를
rg
의 내용으로 초기화합니다. 마치
insert_range
(
std::
forward
<
R
>
(
rg
)
)
;
와 같이 수행됩니다.
[
first
,
last
)
의 내용으로 기반 컨테이너를 생성합니다.
c
를
c
(
first, last
)
로 초기화하고
compare
를
compare
(
comp
)
로 초기화합니다.
오버로드 참고 사항
(13-15,20-22)
: 만약
[
first
,
last
)
가
유효한 범위
가 아닐 경우, 동작은 정의되지 않습니다.
목차할당자 사용 참고 사항
생성자
(2,3,5,6,8,9,11,12,14,15,17,19,21,22,24,25,27,28)
는 해당하는 비-할당자 생성자와 동일하지만,
매개변수
복잡도
1)
상수.
2)
크기가
other
에 선형적으로 비례합니다.
3)
래핑된 컨테이너의 해당 이동 생성자와 동일합니다. 즉,
cont
의 크기에 대해 상수 시간 또는 선형 시간입니다.
4-6)
N
에 대해 선형적이며,
cont
가
compare
기준으로 정렬된 경우, 그렇지 않으면
𝓞(N·log(N))
입니다. 여기서
N
은 이 호출 전
cont.
size
(
)
의 값입니다.
7-9)
래핑된 컨테이너의 해당 이동 생성자와 동일하며, 즉
cont
의 크기에 대해 상수 시간 또는 선형 시간이 소요됩니다.
10-12)
상수.
13-15)
입력 범위
[
first
,
last
)
가
compare
에 대해 정렬된 경우
N
에 대해 선형, 그렇지 않으면
𝓞(N·log(N))
입니다. 여기서
N
는 이 호출 전
cont.
size
(
)
의 값입니다.
16-19)
입력 범위
rg
가
compare
에 대해 정렬된 경우
N
에 선형적, 그렇지 않으면
𝓞(N·log(N))
, 여기서
N
는 이 호출 전
cont.
size
(
)
의 값입니다.
20-22)
[
first
,
last
)
크기에 선형적입니다.
23-25)
N
에 대해 선형적이며,
init
의 요소들이
compare
기준으로 정렬된 경우, 그렇지 않으면
𝓞(N·log(N))
의 시간 복잡도를 가집니다. 여기서
N
은 이 호출 전
cont.
size
(
)
의 값입니다.
26-28)
크기에 대해 선형적으로
init
.
예외
참고컨테이너 이동 생성 후 (오버로드 (3,16-19)), 참조, 포인터 및 반복자는 원래 예제
참고 항목
| |||||||||||||||||||||||||||||||||||||||||||