Embedded Template Library 1.0
Loading...
Searching...
No Matches
utility.h File Reference
#include "platform.h"
#include "type_traits.h"
#include <algorithm>
#include "private/diagnostic_float_equal_push.h"
#include "private/diagnostic_pop.h"

Go to the source code of this file.

Classes

struct  etl::pair< T1, T2 >
 pair holds two objects of arbitrary type More...
 
struct  etl::select1st< TPair >
 Functor to select pair::first. More...
 
struct  etl::select2nd< TPair >
 Functor to select pair::second. More...
 
struct  etl::coordinate_2d< T >
 integer_sequence More...
 
struct  etl::in_place_t
 in_place disambiguation tags. More...
 
struct  etl::in_place_type_t< T >
 
struct  etl::in_place_index_t< I >
 

Namespaces

namespace  etl
 bitset_ext
 

Functions

template<typename T1 , typename T2 >
pair< T1, T2etl::make_pair (T1 a, T2 b)
 A convenience wrapper for creating a pair from two objects.
 
template<typename T1 , typename T2 >
void etl::swap (pair< T1, T2 > &a, pair< T1, T2 > &b)
 
template<typename T1 , typename T2 >
bool etl::operator== (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 Two pairs of the same type are equal iff their members are equal.
 
template<typename T1 , typename T2 >
bool etl::operator!= (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 Uses operator== to find the result.
 
template<typename T1 , typename T2 >
bool etl::operator< (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 
template<typename T1 , typename T2 >
bool etl::operator> (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 Uses operator< to find the result.
 
template<typename T1 , typename T2 >
bool etl::operator<= (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 Uses operator< to find the result.
 
template<typename T1 , typename T2 >
bool etl::operator>= (const pair< T1, T2 > &a, const pair< T1, T2 > &b)
 Uses operator< to find the result.
 
template<typename T >
T etl::exchange (T &object, const T &new_value)
 exchange (const)
 
template<typename T , typename U >
T etl::exchange (T &object, const U &new_value)
 
template<typename T >
etl::add_const< T >::type & etl::as_const (T &t)
 as_const