VCCC  2024.05
VisualCamp Common C++ library
Formatter Class Reference

#include <vccc/__literal/formatter.hpp>

Detailed Description

Formatting helper class & custom literals

auto str = vccc::Formatter("x:%d, hello %s")(13, "world!");
converts c-style format and inputs to std::string
Definition: formatter.hpp:26

Public Member Functions

 Formatter (const char *format)
 
template<typename ... Args>
std::string operator() (const Args &...args)
 

Constructor & Destructor Documentation

◆ Formatter()

Formatter ( const char *  format)
inlineexplicit

Member Function Documentation

◆ operator()()

std::string operator() ( const Args &...  args)
inline

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