Functions
literals Namespace Reference

Functions

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

Function Documentation

◆ operator"" _a()

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.

◆ operator"" _format() [1/2]

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

Definition at line 50 of file xchar.h.

◆ operator"" _format() [2/2]

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.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:56