Loading...
Searching...
No Matches
printf.h File Reference Go to the source code of this file.
Typedef Documentation◆ basic_printf_context_t
template<typename Char >
Initial value:
Definition printf.h:336 ◆ printf_args
◆ printf_context
◆ wprintf_args
◆ wprintf_context
Function Documentation◆ fprintf() [1/2]
template<typename S , typename... Args, typename Char = char_t<S>>
\rst Prints formatted data to the stream os. Example**:: fmt::fprintf(cerr, "Don't %s!", "panic"); \endrst Definition at line 743 of file printf.h. References make_format_args(), to_string_view(), and vfprintf(). ◆ fprintf() [2/2]
template<typename S , typename... Args, typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
\rst Prints formatted data to the file f. Example**:: fmt::fprintf(stderr, "Don't %s!", "panic"); \endrst Definition at line 681 of file printf.h. References format(), make_format_args(), to_string_view(), and vfprintf(). ◆ make_printf_args()
template<typename... Args>
\rst Constructs an ◆ make_wprintf_args()
template<typename... Args>
\rst Constructs an ◆ printf() [1/2]
template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_string< S >::value) >
\rst Prints formatted data to Example**:: fmt::printf("Elapsed time: %.2f seconds", 1.23); \endrst Definition at line 705 of file printf.h. References make_format_args(), to_string_view(), and vprintf(). ◆ printf() [2/2]
template<typename Char , typename Context >
Definition at line 190 of file printf.h. References format(), and detail::vprintf(). Referenced by StableSum< double >::operator double(). ◆ sprintf()
template<typename S , typename... Args, typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
\rst Formats arguments and returns the result as a string. Example**:: std::string message = fmt::sprintf("The answer is %d", 42); \endrst Definition at line 653 of file printf.h. References format(), make_format_args(), to_string_view(), and vsprintf(). ◆ vfprintf() [1/2]
template<typename S , typename Char = char_t<S>>
Definition at line 712 of file printf.h. References format(), buffer< T >::size(), to_string_view(), vprintf(), and detail::write_buffer(). ◆ vfprintf() [2/2]
template<typename S , typename Char = char_t<S>>
Definition at line 659 of file printf.h. References buffer< T >::data(), format(), buffer< T >::size(), to_string_view(), and vprintf(). ◆ vprintf() [1/2]
template<typename S , typename Char = char_t<S>>
Definition at line 688 of file printf.h. References format(), to_string_view(), and vfprintf(). Referenced by printf(), vfprintf(), vfprintf(), and vsprintf(). ◆ vprintf() [2/2]
template<typename ArgFormatter , typename Char , typename Context = basic_printf_context<typename ArgFormatter::iterator, Char>>
◆ vsprintf()
template<typename S , typename Char = char_t<S>>
Definition at line 634 of file printf.h. References format(), to_string(), to_string_view(), and vprintf(). Referenced by sprintf().
|