|
DiSMEC++
|
#include "throw_error.h"Go to the source code of this file.
Namespaces | |
| dismec | |
| Main namespace in which all types, classes, and functions are defined. | |
Functions | |
| template<class T > | |
| constexpr long | dismec::to_long (T value) |
Convert the given value to long, throwing an error if the conversion is not possible. More... | |
| template<class T > | |
| constexpr std::ptrdiff_t | dismec::calc_ssizeof () |
Gets the sizeof of a type as a signed integer. More... | |
| template<class C > | |
| constexpr auto | dismec::ssize (const C &c) -> std::common_type_t< std::ptrdiff_t, std::make_signed_t< decltype(c.size())>> |
| signed size free function. Taken from https://en.cppreference.com/w/cpp/iterator/size More... | |
Variables | |
| template<class T > | |
| constexpr std::ptrdiff_t | dismec::ssizeof = calc_ssizeof<T>() |
Signed size of type T More... | |