std::pmr::monotonic_buffer_resource::do_is_equal

virtual bool do_is_equal(const std::pmr::memory_resource& other) const noexcept;
(C++17 起)

比较 *thisother 的相等性——用 monotonic_buffer_resource 分配的内存只能用相同资源解分配。

返回值

this == &other

缺陷报告

下列更改行为的缺陷报告追溯地应用于以前出版的 C++ 标准。

DR 应用于 出版时的行为 正确行为
LWG 3000 C++17 进行了不必要的 dynamic_cast 已移除

参阅

[虚]
与另一 memory_resource 比较相等
(std::pmr::memory_resource 的虚私有成员函数)