Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

flat_map

A flat_map with the capacity defined at compile time. More...

Data Structures

class  iflat_map< TKey, TMapped, TKeyCompare >
 The base class for specifically sized flat_maps. More...
class  flat_map< TKey, TValue, MAX_SIZE_, TCompare >
 A flat_map implementation that uses a fixed size buffer. More...

Functions

template<typename TKey , typename TMapped , typename TKeyCompare >
bool operator== (const etl::iflat_map< TKey, TMapped, TKeyCompare > &lhs, const etl::iflat_map< TKey, TMapped, TKeyCompare > &rhs)
 Equal operator.
template<typename TKey , typename TMapped , typename TKeyCompare >
bool operator!= (const etl::iflat_map< TKey, TMapped, TKeyCompare > &lhs, const etl::iflat_map< TKey, TMapped, TKeyCompare > &rhs)
 Not equal operator.

Detailed Description

A flat_map with the capacity defined at compile time.

Has insertion of O(N) and flat_map of O(logN) Duplicate entries are not allowed.


Function Documentation

bool etl::operator!= ( const etl::iflat_map< TKey, TMapped, TKeyCompare > &  lhs,
const etl::iflat_map< TKey, TMapped, TKeyCompare > &  rhs 
)

Not equal operator.

Parameters:
lhsReference to the first flat_map.
rhsReference to the second flat_map.
Returns:
true if the arrays are not equal, otherwise false

Definition at line 604 of file flat_map.h.

bool etl::operator== ( const etl::iflat_map< TKey, TMapped, TKeyCompare > &  lhs,
const etl::iflat_map< TKey, TMapped, TKeyCompare > &  rhs 
)

Equal operator.

Parameters:
lhsReference to the first flat_map.
rhsReference to the second flat_map.
Returns:
true if the arrays are equal, otherwise false

Definition at line 591 of file flat_map.h.