4#include <unordered_map>
13 using ColNamesPtr = std::shared_ptr<ColNames>;
29 std::vector<std::string> get_col_names()
const;
30 void set_col_names(
const std::vector<std::string>&);
33 bool empty()
const noexcept {
return this->col_names.empty(); }
34 size_t size()
const noexcept;
40 std::vector<std::string> col_names;
41 std::unordered_map<std::string, size_t> col_pos;
A standalone header file containing shared code.
CSV_CONST CONSTEXPR_17 OutArray arrayToDefault(T &&value)
Helper constexpr function to initialize an array with all the elements set to value.
The all encompassing namespace.
nonstd::string_view string_view
The string_view class used by this library.
A data structure for handling column name information.
const std::string & operator[](size_t i) const
Retrieve column name by index.