Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

flat_set

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

Data Structures

class  iflat_set< T, TKeyCompare >
 The base class for specifically sized flat_sets. More...
class  flat_set< T, MAX_SIZE_, TCompare >
 A flat_set implementation that uses a fixed size buffer. More...

Functions

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

Detailed Description

A flat_set with the capacity defined at compile time.

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


Function Documentation

bool etl::operator!= ( const etl::iflat_set< T, TKeyCompare > &  lhs,
const etl::iflat_set< T, TKeyCompare > &  rhs 
)

Not equal operator.

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

Definition at line 537 of file flat_set.h.

bool etl::operator== ( const etl::iflat_set< T, TKeyCompare > &  lhs,
const etl::iflat_set< T, TKeyCompare > &  rhs 
)

Equal operator.

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

Definition at line 524 of file flat_set.h.