ark::csv::CsvReaderRow

Defined in header “ark/csv/csv_reader.hh”.


This is a thin wrapper over a row in a CSV file, allowing you to read individual columns if desired.

Methods

  • operator bool()
    Returns true if this row has content, false otherwise.

  • std::string_view column(size_t index)
    Returns the string at the given column. Data will be invalidated if you advance the main CSV reader.

  • Type column_as(size_t index)
    Returns the given column, formatted as the specified primitive data type.

  • void column_to(size_t index, Type & output)
    Returns the given column, into the type specified. Useful for when you don’t know the type.

  • size_t columns()
    Returns the count of columns available.