Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::pmr::memory_resource::do_is_equal

      From cppreference.com
      <cpp‎ |memory‎ |memory resource
       
       
      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*)
      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)
       
       
      virtualbool do_is_equal(conststd::pmr::memory_resource& other)constnoexcept=0;
      (since C++17)

      Compares*this for equality withother.

      Twomemory_resources compare equal if and only if memory allocated from onememory_resource can be deallocated from the other and vice versa.

      [edit] Notes

      The most-derived type ofother may not match the most derived type of*this. A derived class implementation therefore must typically check whether the most derived types of*this andother match usingdynamic_cast, and immediately returnfalse if the cast fails.

      [edit] See also

      compare for equality with anothermemory_resource
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/memory/memory_resource/do_is_equal&oldid=155232"

      [8]ページ先頭

      ©2009-2026 Movatter.jp