kblib 0.2.3
General utilities library for modern C++
kblib::detail_direct_map Namespace Reference

Classes

struct  storage_for
 
struct  storage_for< T, true >
 

Variables

template<typename T >
KBLIB_CONSTANT auto range_of
 

Variable Documentation

◆ range_of

template<typename T >
KBLIB_CONSTANT auto kblib::detail_direct_map::range_of
Initial value:
= (std::numeric_limits<T>::digits + std::numeric_limits<T>::is_signed
< std::numeric_limits<std::uintmax_t>::digits)
? static_cast<std::uintmax_t>(1)
<< to_unsigned(std::numeric_limits<T>::digits
+ std::numeric_limits<T>::is_signed)
: 0
constexpr auto to_unsigned(I x) -> std::make_unsigned_t< I >
Cast integral argument to corresponding unsigned type.
Definition: fakestd.h:592

Definition at line 55 of file direct_map.h.