HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
literals Namespace Reference

Functions

constexpr auto operator""_a (const char *s, size_t) -> detail::udl_arg< char >
 
constexpr auto operator""_format (const char *s, size_t n) -> detail::udl_formatter< char >
 

Function Documentation

constexpr auto literals::operator""_a ( const char *  s,
size_t   
) -> detail::udl_arg<char>

User-defined literal equivalent of :func:fmt::arg.

Example**::

using namespace fmt::literals; fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);

Definition at line 2752 of file format.h.

constexpr auto literals::operator""_format ( const char *  s,
size_t  n 
) -> detail::udl_formatter<char>

User-defined literal equivalent of :func:fmt::format.

Example**::

using namespace fmt::literals; std::string message = "The answer is {}"_format(42);

Definition at line 2767 of file format.h.