BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::hash< int > Struct Reference

#include <bslstl_hash.h>

Public Member Functions

 hash ()=default
 Create a hash object.
 
 hash (const hash &original)=default
 
 ~hash ()=default
 Destroy this object.
 
hashoperator= (const hash &rhs)=default
 
std::size_t operator() (int x) const
 Return a hash value computed using the specified x.
 

Public Attributes

BSLSTL_HASH_DEPRECATED_CPP17 typedef int argument_type
 
BSLSTL_HASH_DEPRECATED_CPP17 typedef std::size_t result_type
 

Constructor & Destructor Documentation

◆ hash() [1/2]

bsl::hash< int >::hash ( )
default

◆ hash() [2/2]

bsl::hash< int >::hash ( const hash< int > &  original)
default

Create a hash object. Note that as hash is an empty (stateless) type, this operation has no observable effect.

◆ ~hash()

bsl::hash< int >::~hash ( )
default

Member Function Documentation

◆ operator()()

std::size_t bsl::hash< int >::operator() ( int  x) const
inline

◆ operator=()

hash & bsl::hash< int >::operator= ( const hash< int > &  rhs)
default

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. Note that as hash is an empty (stateless) type, this operation has no observable effect.

Member Data Documentation

◆ argument_type

BSLSTL_HASH_DEPRECATED_CPP17 typedef int bsl::hash< int >::argument_type
Deprecated:
This typedef is depreacted in C++17, for details see https://isocpp.org/files/papers/p0005r4.html.

◆ result_type

BSLSTL_HASH_DEPRECATED_CPP17 typedef std::size_t bsl::hash< int >::result_type
Deprecated:
This typedef is depreacted in C++17, for details see https://isocpp.org/files/papers/p0005r4.html.

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