Template Struct Int64

Struct Documentation

template<int64_t Value>
struct wrench::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 size_t so that the number can be used as a size type.

Public Static Attributes

constexpr auto value = int64_t{Value}

Returns the value of the index.