emlabcpp
modern opinionated embedded C++ library
bounded.h File Reference
#include "./concepts.h"
#include <optional>
#include <type_traits>
+ Include dependency graph for bounded.h:

Go to the source code of this file.

Classes

class  emlabcpp::bounded< T, MinVal, MaxVal >
 The bounded class represents a wrapper over type T constrained between MinVal and MaxVal as compile-time constants. More...
 

Namespaces

 emlabcpp
 MIT License.
 
 emlabcpp::detail
 

Functions

template<typename T , T MinVal, T MaxVal>
constexpr bool emlabcpp::detail::bounded_derived_test (bounded< T, MinVal, MaxVal > const &)
 

Variables

template<std::size_t N>
constexpr auto emlabcpp::bounded_constant = bounded< std::size_t, N, N >{}
 Simple type alias for bounded index constants. More...
 
template<typename T >
concept emlabcpp::bounded_derived = requires( T val ) { detail::bounded_derived_test( val ); }
 Concept that matchestype deriving from bounded. More...