Output iterator for writing CSV data field-by-field.
More...
#include <csv.hpp>
|
using | value_type = void |
|
using | difference_type = void |
|
using | pointer = void |
|
using | reference = void |
|
using | iterator_category = std::output_iterator_tag |
|
Output iterator for writing CSV data field-by-field.
This iterator has no mechanism for ending a row. Use Writer::end_row instead
◆ Iterator()
csv::Writer::Iterator::Iterator |
( |
Writer & | w | ) |
|
|
inlineexplicit |
Creates an iterator from a Writer object.
- Warning
w
must not be destroyed during iteration
◆ operator=()
template<typename T >
Iterator & csv::Writer::Iterator::operator= |
( |
const T & | field | ) |
|
|
inline |
Writes a field to the CSV output.
- Parameters
-
field | Data to write. Type must be convertible to std::string either directly, by to_string , or by ostream::operator<< |
- Exceptions
-
The documentation for this class was generated from the following file: