Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::literals Namespace Reference

Functions

template<typename T , T... Str>
constexpr name operator""_n ()
 

Function Documentation

◆ operator""_n()

template<typename T , T... Str>
name sysio::chain::literals::operator""_n ( )
inlineconstexpr

Definition at line 95 of file name.hpp.

95 {
96 constexpr const char buf[] = {Str...};
97 return name{std::integral_constant<uint64_t, string_to_uint64_t(std::string_view{buf, sizeof(buf)})>::value};
98 }
constexpr uint64_t string_to_uint64_t(std::string_view str)
Definition name.hpp:24
#define value
Definition pkcs11.h:157
unsigned __int64 uint64_t
Definition stdint.h:136
Immutable except for fc::from_variant.
Definition name.hpp:43
uint8_t buf[2048]