Embedded Template Library 1.0
numeric.h File Reference
#include "platform.h"
#include "type_traits.h"
#include "limits.h"
#include "iterator.h"
#include <iterator>

Go to the source code of this file.

Namespaces

namespace  etl
 bitset_ext
 

Functions

template<typename TIterator , typename T >
ETL_CONSTEXPR14 void etl::iota (TIterator first, TIterator last, T value)
 
template<typename T >
ETL_CONSTEXPR14 etl::enable_if<!etl::is_pointer< T >::value &&!etl::is_integral< T >::value &&etl::is_floating_point< T >::value, T >::type etl::midpoint (T a, T b) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 etl::enable_if<!etl::is_pointer< T >::value &&etl::is_integral< T >::value &&!etl::is_floating_point< T >::value &&etl::is_unsigned< T >::value, T >::type etl::midpoint (T a, T b) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 etl::enable_if<!etl::is_pointer< T >::value &&etl::is_integral< T >::value &&!etl::is_floating_point< T >::value &&etl::is_signed< T >::value, T >::type etl::midpoint (T a, T b) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 etl::enable_if< etl::is_pointer< T >::value &&!etl::is_integral< T >::value &&!etl::is_floating_point< T >::value, T >::type etl::midpoint (T a, T b) ETL_NOEXCEPT
 
template<typename T >
ETL_CONSTEXPR14 T etl::midpoint (T a, T b, typename etl::enable_if<!etl::is_pointer< T >::value &&!etl::is_integral< T >::value &&!etl::is_floating_point< T >::value &&etl::is_same< typename etl::iterator_traits< T >::iterator_category, ETL_OR_STD::random_access_iterator_tag >::value, int >::type=0)
 
template<typename T >
ETL_CONSTEXPR14 T etl::midpoint (T a, T b, typename etl::enable_if<(!etl::is_pointer< T >::value &&!etl::is_integral< T >::value &&!etl::is_floating_point< T >::value &&(etl::is_same< typename etl::iterator_traits< T >::iterator_category, ETL_OR_STD::forward_iterator_tag >::value||etl::is_same< typename etl::iterator_traits< T >::iterator_category, ETL_OR_STD::bidirectional_iterator_tag >::value)), int >::type=0)
 
template<typename T >
ETL_CONSTEXPR etl::enable_if< etl::is_floating_point< T >::value, T >::type etl::lerp (T a, T b, T t) ETL_NOEXCEPT
 
template<typename TArithmetic1 , typename TArithmetic2 , typename TArithmetic3 >
ETL_CONSTEXPR etl::enable_if<!etl::is_floating_point< TArithmetic1 >::value||!etl::is_floating_point< TArithmetic2 >::value||!etl::is_floating_point< TArithmetic3 >::value, typenameetl::conditional< etl::is_same< TArithmetic1, longdouble >::value||etl::is_same< TArithmetic2, longdouble >::value||etl::is_same< TArithmetic3, longdouble >::value, longdouble, double >::type >::type etl::lerp (TArithmetic1 a, TArithmetic2 b, TArithmetic3 t) ETL_NOEXCEPT