std::pmr::synchronized_pool_resource::do_is_equal
来自 cppreference.cn
< cpp | memory | synchronized pool resource
virtual bool do_is_equal( const std::pmr::memory_resource& other ) const noexcept; |
(自 C++17 起) | |
为了标识比较 *this 与 other - 使用 synchronized_pool_resource
分配的内存只能使用相同的资源进行释放。
[edit] 返回值
this == &other
[edit] 缺陷报告
以下行为变更缺陷报告被追溯应用于先前发布的 C++ 标准。
DR | 应用于 | 已发布行为 | 正确行为 |
---|---|---|---|
LWG 3000 | C++17 | 执行了不必要的 dynamic_cast |
已移除 |
[edit] 参见
[虚函数] |
与另一个 memory_resource 比较相等性( std::pmr::memory_resource 的虚私有成员函数) |