Classes | Namespaces | Macros | Functions
compile.h File Reference
#include "format.h"
Include dependency graph for compile.h:

Go to the source code of this file.

Classes

class  detail::compiled_string
 
class  detail::counting_iterator
 
struct  detail::is_compiled_string< S >
 
class  detail::truncating_iterator< OutputIt, Enable >
 
class  detail::truncating_iterator< OutputIt, std::false_type >
 
class  detail::truncating_iterator< OutputIt, std::true_type >
 
class  detail::truncating_iterator_base< OutputIt >
 
struct  detail::counting_iterator::value_type
 

Namespaces

 detail
 

Macros

#define FMT_COMPILE(s)   FMT_STRING(s)
 

Functions

template<typename Char , typename InputIt >
counting_iterator detail::copy_str (InputIt begin, InputIt end, counting_iterator it)
 
template<typename T , typename... Tail>
const T & detail::first (const T &value, const Tail &...)
 
template<typename OutputIt , typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
FMT_MODULE_EXPORT_BEGIN format_to_n_result< OutputIt > format_to_n (OutputIt out, size_t n, const S &format_str, Args &&... args)
 
template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
size_t formatted_size (const S &format_str, const Args &... args)
 
template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
void print (std::FILE *f, const S &format_str, const Args &... args)
 
template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
void print (const S &format_str, const Args &... args)
 

Macro Definition Documentation

◆ FMT_COMPILE

#define FMT_COMPILE (   s)    FMT_STRING(s)

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 constexpr if compiler support.

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);

Definition at line 163 of file compile.h.

Function Documentation

◆ format_to_n()

template<typename OutputIt , typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
FMT_MODULE_EXPORT_BEGIN format_to_n_result<OutputIt> format_to_n ( OutputIt  out,
size_t  n,
const S format_str,
Args &&...  args 
)

Definition at line 597 of file compile.h.

◆ formatted_size()

template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
size_t formatted_size ( const S format_str,
const Args &...  args 
)

Definition at line 606 of file compile.h.

◆ print() [1/2]

template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
void print ( std::FILE *  f,
const S format_str,
const Args &...  args 
)

Definition at line 612 of file compile.h.

◆ print() [2/2]

template<typename S , typename... Args, FMT_ENABLE_IF(detail::is_compiled_string< S >::value) >
void print ( const S format_str,
const Args &...  args 
)

Definition at line 620 of file compile.h.



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