Sygaldry
Loading...
Searching...
No Matches

A wrapper around a numeric literal that enables using floats as template parameters. More...

Public Types

using type = T
 The underlying numeric type.
 

Public Member Functions

_consteval num_literal (T f)
 Constructor enabling initialization from a literal constant.
 
 operator T ()
 Conversion operator so that the num_literal can be treated roughly as if it is of T type.
 

Public Attributes

value
 The value of the constant.
 

Detailed Description

template<typename T>
requires std::integral<T> || std::floating_point<T>
struct sygaldry::num_literal< T >

A wrapper around a numeric literal that enables using floats as template parameters.


The documentation for this struct was generated from the following file: