BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::hash< unsigned char > 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() (unsigned char x) const
 Return a hash value computed using the specified x.
 

Public Attributes

BSLSTL_HASH_DEPRECATED_CPP17 typedef unsigned char argument_type
 
BSLSTL_HASH_DEPRECATED_CPP17 typedef std::size_t result_type
 

Constructor & Destructor Documentation

◆ hash() [1/2]

bsl::hash< unsigned char >::hash ( )
default

◆ hash() [2/2]

bsl::hash< unsigned char >::hash ( const hash< unsigned char > &  original)
default

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

◆ ~hash()

bsl::hash< unsigned char >::~hash ( )
default

Member Function Documentation

◆ operator()()

std::size_t bsl::hash< unsigned char >::operator() ( unsigned char  x) const

◆ operator=()

hash & bsl::hash< unsigned char >::operator= ( const hash< unsigned char > &  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 unsigned char bsl::hash< unsigned char >::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< unsigned char >::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: