Loading...
Searching...
No Matches
compile.h File Reference Go to the source code of this file.
Macro Definition Documentation◆ FMT_COMPILE
\rst Converts a string literal s into a format string that will be parsed at compile time and converted into efficient formatting code. Requires C++17 Example**:: Converts 42 into std::string using the most efficient method and no runtime format string processing. std::string s = fmt::format(FMT_COMPILE("{}"), 42); \endrst Function Documentation◆ compile()
template<typename... Args>
Definition at line 598 of file compile.h. References detail::compile(). ◆ format() [1/2]
template<typename CompiledFormat , typename... Args, typename Char = typename CompiledFormat::char_type, FMT_ENABLE_IF(std::is_base_of< detail::basic_compiled_format, CompiledFormat >::value) >
Definition at line 629 of file compile.h. References make_format_args(), to_string(), and detail::cf::vformat_to(). Referenced by format(). ◆ format() [2/2]
template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
Definition at line 639 of file compile.h. References detail::compile(), detail::first(), format(), and basic_string_view< Char >::size(). ◆ format_to() [1/2]
template<typename OutputIt , typename CompiledFormat , typename... Args, FMT_ENABLE_IF(std::is_base_of< detail::basic_compiled_format, CompiledFormat >::value) >
Definition at line 655 of file compile.h. References make_format_args(), and detail::cf::vformat_to(). Referenced by format_to(), format_to_n(), format_to_n(), and formatted_size(). ◆ format_to() [2/2]
template<typename OutputIt , typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
Definition at line 665 of file compile.h. References detail::compile(), and format_to(). ◆ format_to_n() [1/2]
template<typename OutputIt , typename CompiledFormat , typename... Args>
Definition at line 671 of file compile.h. References format_to(). ◆ format_to_n() [2/2]
template<typename OutputIt , typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
Definition at line 686 of file compile.h. References detail::compile(), and format_to(). ◆ formatted_size()
template<typename CompiledFormat , typename... Args>
Definition at line 695 of file compile.h. References format_to().
|