Version: SMASH-3.2
numeric_cast.h File Reference
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

 smash
 
 smash::detail
 

Functions

template<typename T >
constexpr auto smash::detail::type_name ()
 Get type of variable as string in a human-readable way. More...
 
template<typename To , class From , typename std::enable_if_t< std::is_arithmetic_v< To >, bool > = true>
constexpr To smash::numeric_cast (From from) noexcept(false)
 Function template to perform a safe numeric conversion between types. More...