MarlinMT  0.1.0
marlinmt::book::details Namespace Reference

Classes

class  Entry
 class to store and manage objects in BookStore. More...
 

Functions

template<typename I , typename O >
constexpr O safe_cast (const I &input)
 caste integral types with domain check. More...
 

Function Documentation

◆ safe_cast()

template<typename I , typename O >
constexpr O marlinmt::book::details::safe_cast ( const I &  input)

caste integral types with domain check.

Returns
input value in new domain.
Parameters
inputvalue to change domain.
Exceptions
std::domain_errorif input won't fit in new domain.

Definition at line 339 of file Base.h.