libstdc++
std::owner_hash Struct Reference

#include <memory>

Public Types

using is_transparent = void
 

Public Member Functions

template<typename _Tp >
size_t operator() (const shared_ptr< _Tp > &__s) const noexcept
 
template<typename _Tp >
size_t operator() (const weak_ptr< _Tp > &__s) const noexcept
 

Detailed Description

Provides ownership-based hashing.

Since
C++26

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

Member Typedef Documentation

◆ is_transparent

using std::owner_hash::is_transparent = void

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

Member Function Documentation

◆ operator()() [1/2]

template<typename _Tp >
size_t std::owner_hash::operator() ( const shared_ptr< _Tp > &  __s) const
inlinenoexcept

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

◆ operator()() [2/2]

template<typename _Tp >
size_t std::owner_hash::operator() ( const weak_ptr< _Tp > &  __s) const
inlinenoexcept

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


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