Namespaces
Variants

std::pmr::monotonic_buffer_resource:: do_is_equal

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
virtual bool do_is_equal ( const std:: pmr :: memory_resource & other ) const noexcept ;
(自 C++17 起)

比较 * this other 的同一性——使用 monotonic_buffer_resource 分配的内存只能通过同一资源进行释放。

返回值

this == & other

缺陷报告

下列行为变更缺陷报告被追溯应用于先前发布的 C++ 标准。

缺陷报告 适用范围 发布时行为 正确行为
LWG 3000 C++17 执行了不必要的 dynamic_cast 操作 已移除

参见

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