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.
| 935 | /// information has been stripped from the arguments, leaving just enough of a |
| 936 | /// common interface to perform formatting as required. |
| 937 | class 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() |
| 952 | typedef const FormatList& FormatListRef; |
nothing calls this directly
no outgoing calls
no test coverage detected