MCPcopy Create free account
hub / github.com/c42f/tinyformat / FormatList

Class FormatList

tinyformat.h:937–949  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

935/// information has been stripped from the arguments, leaving just enough of a
936/// common interface to perform formatting as required.
937class FormatList
938{
939 public:
940 FormatList(detail::FormatArg* args, int N)
941 : m_args(args), m_N(N) { }
942
943 friend void vformat(std::ostream& out, const char* fmt,
944 const FormatList& list);
945
946 private:
947 const detail::FormatArg* m_args;
948 int m_N;
949};
950
951/// Reference to type-opaque format list for passing to vformat()
952typedef const FormatList& FormatListRef;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected