VLink  2.3.0
A high-performance communication middleware
vlink::format::detail::FormatWriter< CharT, WriterT > 模板类 参考

#include <format.h>

vlink::format::detail::FormatWriter< CharT, WriterT > 的协作图:

Public 成员函数

 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
 

构造及析构函数说明

◆ FormatWriter()

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

成员函数说明

◆ 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
函数调用图:

◆ 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

该类的文档由以下文件生成: