std::pmr::memory_resource::is_equal

bool is_equal(const memory_resource& other) const noexcept;
(C++17 起)

比较 *thisother 的相等性。二个 memory_resource 比较相等,当且仅当从一个 memory_resource 分配的内存能从另一个解分配,反之亦然。

等价于 return do_is_equal(other);

参阅

与另一 memory_resource 比较相等
(虚私有成员函数)

版本历史

  • (当前 | 先前 2017年9月28日 (四) 23:43Fruderica讨论 | 贡献 . . (531字节) (-31). . (merge noexcept) (撤销)
  • 当前 | 先前) 2017年5月4日 (四) 08:18Fruderica讨论 | 贡献. . (562字节) (+562). . (以“{{cpp/memory/memory_resource/title|is_equal}} {{cpp/memory/memory_resource/navbar}} {{ddcl|since=c++17| bool is_equal(const memory_resource& other) const; }} 比较...”为内容创建页面)