On this page
operator==,!=(std::allocator)
(1) | ||
|
(until C++11) | |
|
(since C++11) (until C++20) |
|
|
(since C++20) | |
(2) | ||
|
(until C++11) | |
|
(since C++11) (until C++20) |
Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.
1) Returns
true
.
2) Returns
false
.
The |
(since C++20) |
Parameters
lhs, rhs | - | default allocators to compare |
Return value
1)
true
2)
false
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/allocator/operator_cmp