libstdc++
std::owner_equal Struct Reference

#include <memory>

Public Types

using is_transparent = void
 

Public Member Functions

template<typename _Tp1 , typename _Tp2 >
bool operator() (const shared_ptr< _Tp1 > &__lhs, const shared_ptr< _Tp2 > &__rhs) const noexcept
 
template<typename _Tp1 , typename _Tp2 >
bool operator() (const shared_ptr< _Tp1 > &__lhs, const weak_ptr< _Tp2 > &__rhs) const noexcept
 
template<typename _Tp1 , typename _Tp2 >
bool operator() (const weak_ptr< _Tp1 > &__lhs, const shared_ptr< _Tp2 > &__rhs) const noexcept
 
template<typename _Tp1 , typename _Tp2 >
bool operator() (const weak_ptr< _Tp1 > &__lhs, const weak_ptr< _Tp2 > &__rhs) const noexcept
 

Detailed Description

Provides ownership-based mixed equality comparisons of shared and weak pointers.

Since
C++26

Definition at line 940 of file bits/shared_ptr.h.

Member Typedef Documentation

◆ is_transparent

using std::owner_equal::is_transparent = void

Definition at line 966 of file bits/shared_ptr.h.

Member Function Documentation

◆ operator()() [1/4]

template<typename _Tp1 , typename _Tp2 >
bool std::owner_equal::operator() ( const shared_ptr< _Tp1 > &  __lhs,
const shared_ptr< _Tp2 > &  __rhs 
) const
inlinenoexcept

Definition at line 944 of file bits/shared_ptr.h.

◆ operator()() [2/4]

template<typename _Tp1 , typename _Tp2 >
bool std::owner_equal::operator() ( const shared_ptr< _Tp1 > &  __lhs,
const weak_ptr< _Tp2 > &  __rhs 
) const
inlinenoexcept

Definition at line 950 of file bits/shared_ptr.h.

◆ operator()() [3/4]

template<typename _Tp1 , typename _Tp2 >
bool std::owner_equal::operator() ( const weak_ptr< _Tp1 > &  __lhs,
const shared_ptr< _Tp2 > &  __rhs 
) const
inlinenoexcept

Definition at line 956 of file bits/shared_ptr.h.

◆ operator()() [4/4]

template<typename _Tp1 , typename _Tp2 >
bool std::owner_equal::operator() ( const weak_ptr< _Tp1 > &  __lhs,
const weak_ptr< _Tp2 > &  __rhs 
) const
inlinenoexcept

Definition at line 962 of file bits/shared_ptr.h.


The documentation for this struct was generated from the following file: