staticlib_pion  2.0.2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Functions
staticlib::pion::algorithm Namespace Reference

Contains some common algorithms. More...

Classes

struct  iequal_to
 Case insensitive string equality predicate. More...
struct  ihash
 Case insensitive hash generic function. More...

Functions

bool is_char (int c)
 Detect char.
bool is_control (int c)
 Detect control char.
bool is_special (int c)
 Detect special char.
template<class T >
static void hash_combine (std::size_t &seed, const T &v)
 Called repeatedly to incrementally create a hash value from several variables.

Detailed Description

Contains some common algorithms.

Function Documentation

template<class T >
static void staticlib::pion::algorithm::hash_combine ( std::size_t &  seed,
const T &  v 
)
static

Called repeatedly to incrementally create a hash value from several variables.

See Also
http://www.boost.org/doc/libs/1_58_0/doc/html/hash/combine.html
Parameters
seedseed value for this hash
vvalue to compute hash over
bool staticlib::pion::algorithm::is_char ( int  c)
inline

Detect char.

Parameters
cinteger
Returns
true if char, false otherwise
bool staticlib::pion::algorithm::is_control ( int  c)
inline

Detect control char.

Parameters
cinteger
Returns
true if control char, false otherwise
bool staticlib::pion::algorithm::is_special ( int  c)
inline

Detect special char.

Parameters
cinteger
Returns
true if special char, false otherwise