lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Static Public Member Functions | Static Public Attributes
lean::containers::default_keys< Key > Struct Template Reference

Defines default values for invalid & end keys. More...

#include <simple_hash_map.h>

List of all members.

Static Public Member Functions

static LEAN_INLINE bool is_valid (const Key &key)
 Predicate used in key validity checks.

Static Public Attributes

static const Key invalid_key
 Invalid key value that is guaranteed never to be used in key-value-pairs.
static const Key end_key = Key()
 Valid key value used as end marker. May still be used in actual key-value-pairs.

Detailed Description

template<class Key>
struct lean::containers::default_keys< Key >

Defines default values for invalid & end keys.


Member Data Documentation

template<class Key >
const Key lean::containers::default_keys< Key >::invalid_key [static]
Initial value:
    (numeric_limits<Key>::has_infinity)
        ? numeric_limits<Key>::infinity
        : (numeric_limits<Key>::is_unsigned)
            ? numeric_limits<Key>::max
            : numeric_limits<Key>::min

Invalid key value that is guaranteed never to be used in key-value-pairs.


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