VLink  2.3.0
A high-performance communication middleware
vlink::format::detail::FormatWriter< CharT, WriterT > Class Template Reference

#include <format.h>

Collaboration diagram for vlink::format::detail::FormatWriter< CharT, WriterT >:

Public Member Functions

 FormatWriter (WriterT writer)
 
void format (std::string_view fmt, BasicFormatArgs< CharT > args, size_t arg_id=0)
 
template<typename... ArgsT>
bool try_format (std::string_view &fmt, size_t &arg_id, const ArgsT &... args)
 
auto out () const
 
template<typename WriterImplT = WriterT>
auto total_size () const -> decltype(std::declval< WriterImplT >().total_size())
 
size_t size () const
 

Constructor & Destructor Documentation

◆ FormatWriter()

template<typename CharT , typename WriterT >
vlink::format::detail::FormatWriter< CharT, WriterT >::FormatWriter ( WriterT  writer)
inlineexplicit

Member Function Documentation

◆ format()

template<typename CharT , typename WriterT >
void vlink::format::detail::FormatWriter< CharT, WriterT >::format ( std::string_view  fmt,
BasicFormatArgs< CharT >  args,
size_t  arg_id = 0 
)
inline
Here is the call graph for this function:

◆ out()

template<typename CharT , typename WriterT >
auto vlink::format::detail::FormatWriter< CharT, WriterT >::out ( ) const
inline

◆ size()

template<typename CharT , typename WriterT >
size_t vlink::format::detail::FormatWriter< CharT, WriterT >::size ( ) const
inline

◆ total_size()

template<typename CharT , typename WriterT >
template<typename WriterImplT = WriterT>
auto vlink::format::detail::FormatWriter< CharT, WriterT >::total_size ( ) const -> decltype(std::declval<WriterImplT>().total_size())
inline

◆ try_format()

template<typename CharT , typename WriterT >
template<typename... ArgsT>
bool vlink::format::detail::FormatWriter< CharT, WriterT >::try_format ( std::string_view &  fmt,
size_t &  arg_id,
const ArgsT &...  args 
)
inline

The documentation for this class was generated from the following file: