Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.51 KB

File metadata and controls

51 lines (38 loc) · 1.51 KB

operator()

  • memory[meta header]
  • std[meta namespace]
  • owner_equal[meta class]
  • function template[meta id-type]
  • cpp26[meta cpp]
template <class T, class U>
constexpr bool operator()(const shared_ptr<T>& a,
                          const shared_ptr<U>& b) const noexcept; // (1) C++26

template <class T, class U>
constexpr bool operator()(const shared_ptr<T>& a,
                          const weak_ptr<U>& b) const noexcept;   // (2) C++26

template <class T, class U>
constexpr bool operator()(const weak_ptr<T>& a,
                          const shared_ptr<U>& b) const noexcept; // (3) C++26

template <class T, class U>
constexpr bool operator()(const weak_ptr<T>& a,
                          const weak_ptr<U>& b) const noexcept;  // (4) C++26
  • shared_ptr[link /reference/memory/shared_ptr.md]
  • weak_ptr[link /reference/memory/weak_ptr.md]

概要

所有権ベースでの等値比較を行う。

戻り値

return a.owner_equal(b);
  • owner_equal[link /reference/memory/shared_ptr/owner_equal.md]

バージョン

言語

  • C++26

関連項目

参照