BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::owner_hash Struct Reference

#include <bslstl_ownerhash.h>

Public Types

typedef void is_transparent
 Type alias indicating this is a transparent hash functor.
 

Public Member Functions

 owner_hash ()=default
 
 owner_hash (const owner_hash &original)=default
 
 ~owner_hash ()=default
 
owner_hashoperator= (const owner_hash &rhs)=default
 
template<class ELEMENT_TYPE >
size_t operator() (const shared_ptr< ELEMENT_TYPE > &x) const BSLS_KEYWORD_NOEXCEPT
 
template<class ELEMENT_TYPE >
size_t operator() (const weak_ptr< ELEMENT_TYPE > &x) const BSLS_KEYWORD_NOEXCEPT
 

Member Typedef Documentation

◆ is_transparent

Constructor & Destructor Documentation

◆ owner_hash() [1/2]

bsl::owner_hash::owner_hash ( )
default

◆ owner_hash() [2/2]

bsl::owner_hash::owner_hash ( const owner_hash original)
default

◆ ~owner_hash()

bsl::owner_hash::~owner_hash ( )
default

Member Function Documentation

◆ operator()() [1/2]

template<class ELEMENT_TYPE >
size_t bsl::owner_hash::operator() ( const shared_ptr< ELEMENT_TYPE > &  x) const
inline

◆ operator()() [2/2]

template<class ELEMENT_TYPE >
size_t bsl::owner_hash::operator() ( const weak_ptr< ELEMENT_TYPE > &  x) const
inline

Return the result of calling owner_hash() on the specified x. Note that for any object y where x.owner_equal(y) is true, x.owner_hash() == y.owner_hash() is true.

◆ operator=()

owner_hash & bsl::owner_hash::operator= ( const owner_hash rhs)
default

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