qxLib
Public Member Functions | List of all members
qx::basic_string_hash< traits_t > Class Template Reference

String hash object. More...

#include <string_hash.h>

Public Member Functions

constexpr basic_string_hash (const_pointer pszString, size_type nSize) noexcept
 basic_string_hash object constructor More...
 
constexpr basic_string_hash (const_pointer pszString) noexcept
 basic_string_hash object constructor More...
 
template<range_of_t_c< typename traits_t::value_type > string_t>
constexpr basic_string_hash (const string_t &sString) noexcept
 basic_string_hash object constructor More...
 
constexpr operator size_t () const noexcept
 operator size_t More...
 

Detailed Description

template<class traits_t>
class qx::basic_string_hash< traits_t >

String hash object.

Template Parameters
traits_t- char traits.
See also
string_traits.h
Author
Khrapov
Date
13.11.2020

Definition at line 37 of file string_hash.h.

Constructor & Destructor Documentation

◆ basic_string_hash() [1/3]

template<class traits_t >
constexpr qx::basic_string_hash< traits_t >::basic_string_hash ( const_pointer  pszString,
size_type  nSize 
)
constexprnoexcept

basic_string_hash object constructor

Parameters
pszString- string first char pointer
nSize- string size

Definition at line 16 of file string_hash.inl.

◆ basic_string_hash() [2/3]

template<class traits_t >
constexpr qx::basic_string_hash< traits_t >::basic_string_hash ( const_pointer  pszString)
constexprnoexcept

basic_string_hash object constructor

Parameters
pszString- pointer to string zero terminated

Definition at line 22 of file string_hash.inl.

◆ basic_string_hash() [3/3]

template<class traits_t >
template<range_of_t_c< typename traits_t::value_type > string_t>
constexpr qx::basic_string_hash< traits_t >::basic_string_hash ( const string_t &  sString)
constexprnoexcept

basic_string_hash object constructor

Template Parameters
string_t- string-ish type, satisfying the "range_of_t_c" concept
Parameters
sString- string-ish container

Definition at line 36 of file string_hash.inl.

Member Function Documentation

◆ operator size_t()

template<class traits_t >
constexpr qx::basic_string_hash< traits_t >::operator size_t
constexprnoexcept

operator size_t

Return values
-hash number

Definition at line 42 of file string_hash.inl.


The documentation for this class was generated from the following files: