libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
Format Class Reference

Streams values into a built-in string builder. More...

#include <format.hh>

Public Member Functions

 Format (const Format &rhs)=delete
 Non-copyable.
 
Format & operator= (const Format &rhs)=delete
 Non-copyable.
 
 Format ()=default
 Creates an empty builder.
 
template<typename T >
Format & operator<< (const T &val)
 Appends a value to the builder.
 
 operator std::string () const
 Converts the builder to a string.
 

Friends

std::ostream & operator<< (std::ostream &os, const Format &format)
 Writes the builder's contents to an output stream.
 

Detailed Description

Streams values into a built-in string builder.

Format accumulates values via operator<< and converts to std::string or an output stream, avoiding manual formatting with snprintf-style calls.


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