Namespaces
Variants

operator==,!= (std::scoped_allocator_adaptor)

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
헤더 파일에 정의됨 <scoped_allocator>
template < class OuterAlloc1, class OuterAlloc2, class ... InnerAllocs >

bool operator == ( const scoped_allocator_adaptor < OuterAlloc1, InnerAllocs... > & lhs,

const scoped_allocator_adaptor < OuterAlloc2, InnerAllocs... > & rhs ) noexcept ;
(C++11부터)
template < class OuterAlloc1, class OuterAlloc2, class ... InnerAllocs >

bool operator ! = ( const scoped_allocator_adaptor < OuterAlloc1, InnerAllocs... > & lhs,

const scoped_allocator_adaptor < OuterAlloc2, InnerAllocs... > & rhs ) noexcept ;
(C++11부터)
(C++20까지)

두 스코프 할당자 어댑터를 비교합니다. 두 할당자는 다음과 같은 경우 동일합니다:

  • lhs. outer_allocator ( ) == rhs. outer_allocator ( ) , 그리고
  • 만약 sizeof... ( InnerAllocs ) > 0 이면, lhs. inner_allocator ( ) == rhs. inner_allocator ( ) 입니다.

!= 연산자는 합성된 operator== 로부터 생성됩니다.

(C++20부터)

매개변수

lhs, rhs - 비교할 스코프 할당자 어댑터

반환값

1) true 를 반환합니다, 만약 lhs rhs 가 동일하다면, 그렇지 않으면 false 를 반환합니다.
2) true 를 반환합니다. 단, lhs rhs 가 서로 다를 경우에 한하며, 그렇지 않으면 false 를 반환합니다.