22
Containers library
[containers]
22.3
Sequence containers
[sequences]
22.3.6
Header
<vector>
synopsis
[vector.syn]
#include
<
compare
>
// see
[compare.
syn]
#include
<
initializer_list
>
// see
[initializer.
list.
syn]
namespace
std
{
//
[vector]
, class template
vector
template
<
class
T,
class
Allocator
=
allocator
<
T
>
>
class
vector;
template
<
class
T,
class
Allocator
>
constexpr
bool
operator
=
=
(
const
vector
<
T, Allocator
>
&
x,
const
vector
<
T, Allocator
>
&
y
)
;
template
<
class
T,
class
Allocator
>
constexpr
synth-three-way-result
<
T
>
operator
<
=
>
(
const
vector
<
T, Allocator
>
&
x,
const
vector
<
T, Allocator
>
&
y
)
;
template
<
class
T,
class
Allocator
>
constexpr
void
swap
(
vector
<
T, Allocator
>
&
x, vector
<
T, Allocator
>
&
y
)
noexcept
(
noexcept
(
x
.
swap
(
y
)
)
)
;
template
<
class
T,
class
Allocator,
class
U
>
constexpr
typename
vector
<
T, Allocator
>
::
size_type erase
(
vector
<
T, Allocator
>
&
c,
const
U
&
value
)
;
template
<
class
T,
class
Allocator,
class
Predicate
>
constexpr
typename
vector
<
T, Allocator
>
::
size_type erase_if
(
vector
<
T, Allocator
>
&
c, Predicate pred
)
;
//
[vector.
bool]
, class
vector<bool>
template
<
class
Allocator
>
class
vector
<
bool
, Allocator
>
;
// hash support
template
<
class
T
>
struct
hash;
template
<
class
Allocator
>
struct
hash
<
vector
<
bool
, Allocator
>
>
;
namespace
pmr
{
template
<
class
T
>
using
vector
=
std
::
vector
<
T, polymorphic_allocator
<
T
>
>
;
}
}