Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::pmr::operator==,std::pmr::operator!=

      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)
       
       
      Defined in header<memory_resource>
      bool operator==(conststd::pmr::memory_resource& a,
                       conststd::pmr::memory_resource& b)noexcept;
      (1)(since C++17)
      bool operator!=(conststd::pmr::memory_resource& a,
                       conststd::pmr::memory_resource& b)noexcept;
      (2)(since C++17)
      (until C++20)

      Compares thememory_resourcesa andb for equality. Twomemory_resources compare equal if and only if memory allocated from onememory_resource can be deallocated from the other and vice versa.

      The!= operator issynthesized fromoperator==.

      (since C++20)

      [edit] Return value

      1)&a==&b|| a.is_equal(b)
      2)!(a== b)

      [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/operator_eq&oldid=155233"

      [8]ページ先頭

      ©2009-2026 Movatter.jp