Annex D (normative)
Compatibility features
[depr]
D.17
Deprecated
vector<bool, Allocator>
swap
[depr.vector.bool.swap]
1
#
The following member is declared in addition to those members specified in
[vector.
bool]
:
namespace
std
{
template
<
class
Allocator
>
class
vector
<
bool
, Allocator
>
{
public
:
static
constexpr
void
swap
(
reference x, reference y
)
noexcept
;
}
;
}
🔗
static
constexpr
void
swap
(
reference x, reference y
)
noexcept
;
2
#
Effects
: Exchanges the values denoted by
x
and
y
as if by:
bool
b
=
x; x
=
y; y
=
b;