std::ostream manipulator to print containers as flat lists More...
#include <IoManip.h>

Public Member Functions | |
| AsList (const Container &c) | |
| auto & | prefixedBy (const char *const p) |
| a c-string to print before the first item (if any). Caller must ensure lifetime. More... | |
| auto & | delimitedBy (const char *const d) |
| a c-string to print between consecutive items (if any). Caller must ensure lifetime. More... | |
Public Attributes | |
| const Container & | container |
| zero or more items to print More... | |
| const char * | prefix = nullptr |
| a c-string to print before the first item (if any). Caller must ensure lifetime. More... | |
| const char * | delimiter = nullptr |
| a c-string to print between consecutive items (if any). Caller must ensure lifetime. More... | |
Detailed Description
Constructor & Destructor Documentation
◆ AsList()
Member Function Documentation
◆ delimitedBy()
|
inline |
Definition at line 115 of file IoManip.h.
References AsList< Container >::delimiter.
Referenced by operator<<().
◆ prefixedBy()
|
inline |
Definition at line 112 of file IoManip.h.
References AsList< Container >::prefix.
Referenced by operator<<().
Member Data Documentation
◆ container
| const Container& AsList< Container >::container |
Definition at line 118 of file IoManip.h.
Referenced by operator<<().
◆ delimiter
| const char* AsList< Container >::delimiter = nullptr |
Definition at line 121 of file IoManip.h.
Referenced by AsList< Container >::delimitedBy(), and operator<<().
◆ prefix
| const char* AsList< Container >::prefix = nullptr |
Definition at line 120 of file IoManip.h.
Referenced by operator<<(), and AsList< Container >::prefixedBy().
The documentation for this class was generated from the following file:
- src/base/IoManip.h
