Agora  1.2.0
Agora project
compile.h File Reference
#include "format.h"
Include dependency graph for compile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 fmt
 
 fmt::v8
 
 fmt::v8::detail
 

Macros

#define FMT_COMPILE(s)   FMT_STRING(s)
 

Functions

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

Macro Definition Documentation

◆ FMT_COMPILE

#define FMT_COMPILE (   s)    FMT_STRING(s)

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