souffle  2.0.2-371-g6315b36
Public Member Functions | Private Attributes | Friends
tinyformat::FormatList Class Reference

List of template arguments format(), held in a type-opaque way. More...

#include <tinyformat.h>

Inheritance diagram for tinyformat::FormatList:
Inheritance graph
Collaboration diagram for tinyformat::FormatList:
Collaboration graph

Public Member Functions

 FormatList (detail::FormatArg *args, int N)
 

Private Attributes

const detail::FormatArgm_args
 
int m_N
 

Friends

void vformat (std::ostream &out, const char *fmt, const FormatList &list)
 

Detailed Description

List of template arguments format(), held in a type-opaque way.

A const reference to FormatList (typedef'd as FormatListRef) may be conveniently used to pass arguments to non-template functions: All type information has been stripped from the arguments, leaving just enough of a common interface to perform formatting as required.

Definition at line 941 of file tinyformat.h.

Constructor & Destructor Documentation

◆ FormatList()

tinyformat::FormatList::FormatList ( detail::FormatArg args,
int  N 
)
inline

Definition at line 944 of file tinyformat.h.

945  : m_args(args), m_N(N) { }

Friends And Related Function Documentation

◆ vformat

void vformat ( std::ostream &  out,
const char *  fmt,
const FormatList list 
)
friend

Field Documentation

◆ m_args

const detail::FormatArg* tinyformat::FormatList::m_args
private

Definition at line 951 of file tinyformat.h.

Referenced by tinyformat::vformat().

◆ m_N

int tinyformat::FormatList::m_N
private

Definition at line 952 of file tinyformat.h.

Referenced by tinyformat::vformat().


The documentation for this class was generated from the following file:
tinyformat::FormatList::m_args
const detail::FormatArg * m_args
Definition: tinyformat.h:951
tinyformat::FormatList::m_N
int m_N
Definition: tinyformat.h:952