Template Struct Int64¶
Defined in File number.hpp
Struct Documentation¶
-
template<int64_t
Value
>
structripple
::
Int64
¶ The Int64 struct stores an integer as a type, but also provides functionality to convert the value of the Int64 into a 64 bit integer type at runtime or compile time.
It is useful in a metaprogramming context to use as a type, but also when the numeric value of the type is required. It works better with variadic templates than using a raw numeric literal.
- Template Parameters
Value
: The value of the number.
Public Functions
-
constexpr
operator int64_t
() const noexcept¶ Conversion to int64_t so that the number can be used as a size type.