operators (std::allocator)

1
2
template< class T1, class T2 >
bool operator==( const allocator<T1>& lhs, const allocator<T2>& rhs );
1
2
template< class T1, class T2 >
bool operator!=( const allocator<T1>& lhs, const allocator<T2>& rhs );

Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.

1) Returns true
2) Returns false

Parameters

lhs, rhs - default allocators to compare

Return value

1) true
2) false

Exceptions

(none) (until C++11)
noexcept specification:
noexcept
(since C++11)
doc_CPP
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.