repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::ctei::Range< First, Last > Struct Template Reference

#include <range.h>

Collaboration diagram for librepr::ctei::Range< First, Last >:
[legend]

Public Types

template<std::size_t amount = 1>
using expand = Range< First, max+static_cast< decltype(max)>(amount)>
 

Static Public Member Functions

static constexpr bool is_binary_powers () noexcept
 
static constexpr bool contains (auto value) noexcept
 

Static Public Attributes

static constexpr auto size = Last - First + 1
 
static constexpr auto min = First
 
static constexpr auto max = Last
 
template<auto Idx>
static constexpr auto get = Idx + First
 
template<typename T , EnumKind Kind>
static constexpr auto enum_names = get_enum_names<T, Kind>(std::make_index_sequence<size>{})
 

Member Typedef Documentation

◆ expand

template<auto First, auto Last = First>
template<std::size_t amount = 1>
using librepr::ctei::Range< First, Last >::expand = Range<First, max + static_cast<decltype(max)>(amount)>

Member Function Documentation

◆ contains()

template<auto First, auto Last = First>
static constexpr bool librepr::ctei::Range< First, Last >::contains ( auto  value)
inlinestaticconstexprnoexcept

◆ is_binary_powers()

template<auto First, auto Last = First>
static constexpr bool librepr::ctei::Range< First, Last >::is_binary_powers ( )
inlinestaticconstexprnoexcept

Member Data Documentation

◆ enum_names

template<auto First, auto Last = First>
template<typename T , EnumKind Kind>
constexpr auto librepr::ctei::Range< First, Last >::enum_names = get_enum_names<T, Kind>(std::make_index_sequence<size>{})
staticconstexpr

◆ get

template<auto First, auto Last = First>
template<auto Idx>
constexpr auto librepr::ctei::Range< First, Last >::get = Idx + First
staticconstexpr

◆ max

template<auto First, auto Last = First>
constexpr auto librepr::ctei::Range< First, Last >::max = Last
staticconstexpr

◆ min

template<auto First, auto Last = First>
constexpr auto librepr::ctei::Range< First, Last >::min = First
staticconstexpr

◆ size

template<auto First, auto Last = First>
constexpr auto librepr::ctei::Range< First, Last >::size = Last - First + 1
staticconstexpr

The documentation for this struct was generated from the following file: