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:
◆ 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 703 of file printf.h. References to_string_view(), and vfprintf(). ◆ fprintf() [2/2]
template<typename S , typename... Args, typename Char = enable_if_t<internal::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 643 of file printf.h. References format(), to_string_view(), and vfprintf(). ◆ make_printf_args()
template<typename... Args>
\rst Constructs an ◆ make_wprintf_args()
template<typename... Args>
\rst Constructs an ◆ printf()
template<typename S , typename... Args, FMT_ENABLE_IF(internal::is_string< S >::value) >
\rst Prints formatted data to Example**:: fmt::printf("Elapsed time: %.2f seconds", 1.23); \endrst Definition at line 666 of file printf.h. References to_string_view(), and vprintf(). Referenced by StableSum< double >::operator double(), vfprintf(), vfprintf(), and vsprintf(). ◆ sprintf()
template<typename S , typename... Args, typename Char = enable_if_t<internal::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 616 of file printf.h. References format(), to_string_view(), and vsprintf(). ◆ vfprintf() [1/2]
template<typename S , typename Char = char_t<S>>
Definition at line 673 of file printf.h. References format(), printf(), buffer< T >::size(), to_string_view(), and internal::write(). ◆ vfprintf() [2/2]
template<typename S , typename Char = char_t<S>>
Definition at line 622 of file printf.h. References buffer< T >::data(), format(), printf(), buffer< T >::size(), and to_string_view(). ◆ vprintf() [1/2]
template<typename S , typename Char = char_t<S>>
Definition at line 650 of file printf.h. References format(), to_string_view(), and vfprintf(). Referenced by printf(). ◆ 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 598 of file printf.h. References format(), printf(), to_string(), and to_string_view(). Referenced by sprintf().
|