std::pmr::operator==, std::pmr::operator!=
来自cppreference.com
< cpp | memory | memory resource
在标头 <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 比较相等性 (公开成员函数) |