template<typename T>
class anch::csv::Records< T >
Objects of a CSV input, read one by one (input range).
The range is read once: each iteration reads the next record (the current object is valid until the next iteration). Errors raise CsvError while iterating. It is built by anch::csv::records .
std::stringstream input("id,name\n1,Rex\n2,Médor\n");
std::size_t count = 0;
std::cout << record.name << std::endl;
++count;
}
std::vector<Pet> all;
std::stringstream again("id,name\n1,Rex\n2,Médor\n");
std::ostringstream written;
- Template Parameters
-
- Author
- Vincent Lachenal
- Since
- 0.3