std::pmr::operator==, std::pmr::operator!=
来自cppreference.com
< cpp | memory | memory resource
动态内存管理
|
std::pmr::memory_resource
公开成员函数 | ||||
私有成员函数 | ||||
非成员函数 | ||||
operator==operator!=
(C++20
前)
|
在标头
<memory_resource>
定义
|
||
bool
operator==(
const
std::pmr::memory_resource&
a,
const std::pmr::memory_resource& b ) noexcept; |
(1) | (C++17 起) |
bool
operator!=(
const
std::pmr::memory_resource&
a,
const std::pmr::memory_resource& b ) noexcept; |
(2) | (C++17
起) (C++20 前) |
比较 memory_resource
a
与 b
的相等性。二个
memory_resource
比较相等,当且仅当从一个 memory_resource
分配的内存能从另一个解分配,反之亦然。
|
(C++20 起) |
返回值
1) &a == &b || a.is_equal(b)
2) !(a
== b)
参阅
与另一 memory_resource 比较相等 (公开成员函数) |