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