24
Containers library
[containers]
24.6
Container adaptors
[container.adaptors]
24.6.3
Header
<stack>
synopsis
[stack.syn]
🔗
#include
<
compare
>
// see
[compare.
syn]
#include
<
initializer_list
>
// see
[initializer.
list.
syn]
namespace
std
{
//
[stack]
, class template
stack
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
>
;
//
[container.
adaptors.
format]
, formatter specialization for
stack
template
<
class
charT,
class
T,
formattable
<
charT
>
Container
>
struct
formatter
<
stack
<
T, Container
>
, charT
>
;
}