Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::BasicContainerWriter< Container > Class Template Reference

#include <container.h>

+ Inheritance diagram for fmt::BasicContainerWriter< Container >:
+ Collaboration diagram for fmt::BasicContainerWriter< Container >:

Public Member Functions

 BasicContainerWriter (Container &dest)
 
- Public Member Functions inherited from fmt::BasicWriter< Container::value_type >
BasicWriteroperator<< (int value)
 
BasicWriteroperator<< (unsigned value)
 
BasicWriteroperator<< (long value)
 
BasicWriteroperator<< (unsigned long value)
 
BasicWriteroperator<< (LongLong value)
 
BasicWriteroperator<< (ULongLong value)
 
BasicWriteroperator<< (double value)
 
BasicWriteroperator<< (long double value)
 
BasicWriteroperator<< (char value)
 
BasicWriteroperator<< (typename internal::WCharHelper< wchar_t, Container::value_type >::Supported value)
 
BasicWriteroperator<< (fmt::BasicStringRef< Container::value_type > value)
 
BasicWriteroperator<< (typename internal::WCharHelper< StringRef, Container::value_type >::Supported value)
 
BasicWriteroperator<< (IntFormatSpec< T, Spec, FillChar > spec)
 
BasicWriteroperator<< (const StrFormatSpec< StrChar > &spec)
 
virtual ~BasicWriter ()
 
std::size_t size () const
 
const Container::value_type * data () const FMT_NOEXCEPT
 
const Container::value_type * c_str () const
 
std::basic_string< Container::value_type > str () const
 
void write (BasicCStringRef< Container::value_type > format, ArgList args)
 
void clear () FMT_NOEXCEPT
 
Buffer< Container::value_type > & buffer () FMT_NOEXCEPT
 

Private Attributes

internal::ContainerBuffer< Container > buffer_
 

Additional Inherited Members

- Protected Member Functions inherited from fmt::BasicWriter< Container::value_type >
 BasicWriter (Buffer< Container::value_type > &b)
 

Detailed Description

template<class Container>
class fmt::BasicContainerWriter< Container >

\rst This class template provides operations for formatting and appending data to a standard container like std::vector or std::basic_string.

Example**::

void vecformat(std::vector<char>& dest, fmt::BasicCStringRef<char> format, fmt::ArgList args) { fmt::BasicContainerWriter<std::vector<char> > appender(dest); appender.write(format, args); } FMT_VARIADIC(void, vecformat, std::vector<char>&, fmt::BasicCStringRef<char>); \endrst

Definition at line 65 of file container.h.

Constructor & Destructor Documentation

◆ BasicContainerWriter()

template<class Container >
fmt::BasicContainerWriter< Container >::BasicContainerWriter ( Container & dest)
inlineexplicit

\rst Constructs a :class:fmt::BasicContainerWriter object. \endrst

Definition at line 76 of file container.h.

Member Data Documentation

◆ buffer_

template<class Container >
internal::ContainerBuffer<Container> fmt::BasicContainerWriter< Container >::buffer_
private

Definition at line 68 of file container.h.


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