22
Containers library
[containers]
22.6
Container adaptors
[container.adaptors]
22.6.3
Header
<stack>
synopsis
[stack.syn]
#include
<
compare
>
// see
[compare.
syn]
#include
<
initializer_list
>
// see
[initializer.
list.
syn]
namespace
std
{
template
<
class
T,
class
Container
=
deque
<
T
>
>
class
stack;
template
<
class
T,
class
Container
>
bool
operator
=
=
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
bool
operator
!
=
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
bool
operator
<
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
bool
operator
>
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
bool
operator
<
=
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
bool
operator
>
=
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
three_way_comparable
Container
>
compare_three_way_result_t
<
Container
>
operator
<
=
>
(
const
stack
<
T, Container
>
&
x,
const
stack
<
T, Container
>
&
y
)
;
template
<
class
T,
class
Container
>
void
swap
(
stack
<
T, Container
>
&
x, stack
<
T, Container
>
&
y
)
noexcept
(
noexcept
(
x
.
swap
(
y
)
)
)
;
template
<
class
T,
class
Container,
class
Alloc
>
struct
uses_allocator
<
stack
<
T, Container
>
, Alloc
>
;
}