Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions

bdlb::CaselessStringViewHash Struct Reference

#include <bdlb_caselessstringviewhash.h>

List of all members.

Public Types

typedef bsl::string_view argument_type
typedef bsl::size_t result_type
typedef void is_transparent

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewHash, bsl::is_trivially_copyable)
 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewHash, bsl::is_trivially_default_constructible)
 CaselessStringViewHash ()
 CaselessStringViewHash (const CaselessStringViewHash &original)
CaselessStringViewHashoperator= (const CaselessStringViewHash &rhs)

Detailed Description

This struct defines a hash operation for string views enabling bsl::strings or bsl::string_views to be used as keys in the standard unordered associative containers such as bsl::unordered_map and bsl::unordered_set. Note that this class is an empty POD type.

See Component bdlb_caselessstringviewhash


Member Typedef Documentation


Constructor & Destructor Documentation

bdlb::CaselessStringViewHash::CaselessStringViewHash (  ) 

Create a CaselessStringViewHash object.

bdlb::CaselessStringViewHash::CaselessStringViewHash ( const CaselessStringViewHash original  ) 

default; Create a CaselessStringViewHash object. Note that as CaselessStringViewHash is an empty (stateless) type, this operation will have no observable effect. Destroy this object.


Member Function Documentation

bdlb::CaselessStringViewHash::BSLMF_NESTED_TRAIT_DECLARATION ( CaselessStringViewHash  ,
bsl::is_trivially_copyable   
)
bdlb::CaselessStringViewHash::BSLMF_NESTED_TRAIT_DECLARATION ( CaselessStringViewHash  ,
bsl::is_trivially_default_constructible   
)
CaselessStringViewHash& bdlb::CaselessStringViewHash::operator= ( const CaselessStringViewHash rhs  ) 

default; Assign to this object the value of the specified rhs object, and a return a reference providing modifiable access to this object. Note that as CaselessStringViewHash is an empty (stateless) type, this operation will have no observable effect. Return a hash code generated from the contents of the specified null-terminated argument string, cast to lower case. The behavior is undefined unless argument points to a null-terminated string.


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