operator==,!= (std::scoped_allocator_adaptor)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Non-member functions | ||||
|
operator==
operator!=
(until C++20)
|
||||
| Deduction guides (C++17) |
|
ヘッダーで定義
<scoped_allocator>
|
||
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
==
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(C++11以降) | |
|
template
<
class
OuterAlloc1,
class
OuterAlloc2,
class
...
InnerAllocs
>
bool
operator
!
=
(
const
scoped_allocator_adaptor
<
OuterAlloc1, InnerAllocs...
>
&
lhs,
|
(C++11以降)
(C++20まで) |
|
二つのスコープ付きアロケータアダプタを比較します。以下の場合に二つのアロケータは等しいと見なされます:
- lhs. outer_allocator ( ) == rhs. outer_allocator ( ) が成り立ち、かつ
- sizeof... ( InnerAllocs ) > 0 の場合、 lhs. inner_allocator ( ) == rhs. inner_allocator ( ) が成り立つ。
|
|
(C++20以降) |
パラメータ
| lhs, rhs | - | 比較するスコープ付きアロケータアダプタ |