Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
cyclic_value.h File Reference
#include <stddef.h>
#include <algorithm>
#include "static_assert.h"
#include "exception.h"

Go to the source code of this file.

Classes

class  etl::cyclic_value< T, FIRST, LAST >
 

Functions

template<typename T , const T LHS_FIRST, const T LHS_LAST, const T RHS_FIRST, const T RHS_LAST>
void etl::swap (cyclic_value< T, LHS_FIRST, LHS_LAST > &lhs, cyclic_value< T, RHS_FIRST, RHS_LAST > &rhs)
 Swaps the values.
 
template<typename T , const T LHS_FIRST, const T LHS_LAST, const T RHS_FIRST, const T RHS_LAST>
bool etl::operator== (const cyclic_value< T, LHS_FIRST, LHS_LAST > &lhs, const cyclic_value< T, RHS_FIRST, RHS_LAST > &rhs)
 Equality operator.
 
template<typename T , const T LHS_FIRST, const T LHS_LAST, const T RHS_FIRST, const T RHS_LAST>
bool etl::operator!= (const cyclic_value< T, LHS_FIRST, RHS_LAST > &lhs, const cyclic_value< T, RHS_FIRST, RHS_LAST > &rhs)
 Inequality operator.