lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Provides optimized container classes and wrappers. More...
Namespaces | |
namespace | simple_hash_map_policies |
Defines construction policies for the class simple_hash_map. | |
namespace | simple_vector_policies |
Defines construction policies for the class simple_vector. | |
Classes | |
class | accumulation_map |
Map wrapper class providing improved performance on repeated element accumulation. More... | |
class | accumulation_vector |
Vector wrapper class providing improved performance on repeated element accumulation. More... | |
class | any |
Any interface. More... | |
class | any_value |
Any value. More... | |
class | default_reallocation_policy |
Leaves reallocation to the specified container type. More... | |
class | dynamic_array |
Dynamic array class. More... | |
class | move_reallocation_policy |
Allows for custom move semantics on element reallocation. More... | |
struct | default_keys |
Defines default values for invalid & end keys. More... | |
struct | default_keys< Value * > |
struct | default_keys< std::basic_string< Char, Traits, Allocator > > |
class | simple_hash_map |
Simple and fast hash map class, partially implementing the STL hash map interface. More... | |
class | simple_vector |
Simple and fast vector class, partially implementing the STL vector interface. More... | |
struct | test_value |
Functions | |
template<class Container > | |
LEAN_INLINE void | swap (accumulation_map< Container > &left, accumulation_map< Container > &right) |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator== (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator!= (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator< (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator> (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator<= (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE bool | operator>= (const accumulation_vector< Container, Policy > &left, const accumulation_vector< Container, Policy > &right) |
Comparison operator. | |
template<class Container , class Policy > | |
LEAN_INLINE void | swap (accumulation_vector< Container, Policy > &left, accumulation_vector< Container, Policy > &right) |
template<class Value > | |
LEAN_INLINE Value * | any_cast (any *pContainer) |
Gets a pointer to the value of the given type, if the given value type matches the value stored by the given object, nullptr otherwise. | |
template<class Value > | |
LEAN_INLINE const Value * | any_cast (const any *pContainer) |
Gets a pointer to the value of the given type, if the given value type matches the value stored by the given object, nullptr otherwise. | |
template<class Value > | |
LEAN_INLINE volatile Value * | any_cast (volatile any *pContainer) |
Gets a pointer to the value of the given type, if the given value type matches the value stored by the given object, nullptr otherwise. | |
template<class Value > | |
LEAN_INLINE const volatile Value * | any_cast (const volatile any *pContainer) |
Gets a pointer to the value of the given type, if the given value type matches the value stored by the given object, nullptr otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast_checked (any *container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast_checked (const any *container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast_checked (volatile any *container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast_checked (const volatile any *container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast (any &container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast (const any &container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast (volatile any &container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Value > | |
LEAN_INLINE Value | any_cast (const volatile any &container) |
Gets a value of the given type, if the given value type matches the value stored by the given object, throws bad_cast otherwise. | |
template<class Element , class Heap > | |
LEAN_INLINE void | swap (dynamic_array< Element, Heap > &left, dynamic_array< Element, Heap > &right) |
Swaps the contents of the given vectors. | |
template<class Element , class Policy , class Allocator > | |
LEAN_INLINE void | swap (simple_hash_map< Element, Policy, Allocator > &left, simple_hash_map< Element, Policy, Allocator > &right) |
Swaps the contents of the given hash maps. | |
template<class Element , class Policy , class Allocator > | |
LEAN_INLINE void | swap (simple_vector< Element, Policy, Allocator > &left, simple_vector< Element, Policy, Allocator > &right) |
Swaps the contents of the given vectors. | |
bool | operator== (const test_value &a, const test_value &b) |
bool | operator< (const test_value &a, const test_value &b) |
Provides optimized container classes and wrappers.