repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::ctei Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  Accessor
 
struct  Range
 
struct  RangeList
 
struct  RangeList<>
 
struct  Search
 

Typedefs

template<typename T >
using dump_enum = decltype(Search< T >::search())
 

Enumerations

enum class  EnumKind : unsigned char { Linear , Flags , Empty }
 

Functions

constexpr std::size_t find_first (bool const *array, std::size_t min, std::size_t max, bool value)
 
template<typename T >
constexprclamp (auto value)
 
template<typename T , EnumKind Kind>
constexpr auto to_underlying (auto idx) noexcept -> std::underlying_type_t< T >
 
template<typename T , auto Value>
constexprto_enum () noexcept
 
template<auto V>
consteval auto dump_quick () noexcept
 
template<auto... V>
consteval auto dump_list () noexcept
 
template<typename T , auto Value>
constexpr bool is_enum_value ()
 

Variables

template<typename T , auto Value>
constexpr auto enum_name = detail::get_enum_name<T, Value>()
 

Typedef Documentation

◆ dump_enum

Enumeration Type Documentation

◆ EnumKind

Enumerator
Linear 
Flags 
Empty 

Function Documentation

◆ clamp()

template<typename T >
constexpr T librepr::ctei::clamp ( auto  value)
constexpr

◆ dump_list()

template<auto... V>
consteval auto librepr::ctei::dump_list ( )
noexcept

◆ dump_quick()

template<auto V>
consteval auto librepr::ctei::dump_quick ( )
noexcept

◆ find_first()

constexpr std::size_t librepr::ctei::find_first ( bool const array,
std::size_t  min,
std::size_t  max,
bool  value 
)
constexpr

◆ is_enum_value()

template<typename T , auto Value>
constexpr bool librepr::ctei::is_enum_value ( )
constexpr

◆ to_enum()

template<typename T , auto Value>
constexpr T librepr::ctei::to_enum ( )
constexprnoexcept

◆ to_underlying()

template<typename T , EnumKind Kind>
constexpr auto librepr::ctei::to_underlying ( auto  idx) -> std::underlying_type_t<T>
constexprnoexcept

Variable Documentation

◆ enum_name

template<typename T , auto Value>
constexpr auto librepr::ctei::enum_name = detail::get_enum_name<T, Value>()
inlineconstexpr