43 template<
typename Number>
52 template<
typename CellT>
56 if constexpr(std::is_arithmetic_v<CellT>) {
59 .value_or(std::numeric_limits<CellT>::quiet_NaN());
86 template<
typename Number>
95 template<
typename CellT>
99 if constexpr(std::is_arithmetic_v<CellT>) {
102 .value_or(std::numeric_limits<CellT>::quiet_NaN());
Various Cell-related classes.
CellTypeHint
Type hint associated with the cell to determine the type of the cell value.
Definition csv_cell.h:32
This policy controls the behavior of the parser.
Definition csv_policies.h:31
static std::optional< Number > readNumber(std::string_view cell)
Try to read a numeric value from string data.
Definition csv_policies.h:44
static constexpr bool useEmptyCellType() noexcept
If true, empty cell type is a separate type from (empty) string.
Definition csv_policies.h:35
static constexpr CellT create(std::string_view cell, CellTypeHint hint)
Create an object of type CellT from cell contents represented as string_view.
Definition csv_policies.h:53
This policy controls the behavior of the parser.
Definition csv_policies.h:74
static constexpr std::optional< Number > readNumber(std::string_view cell)
Try to read a numeric value from string data.
Definition csv_policies.h:87
static constexpr CellT create(std::string_view cell, CellTypeHint hint)
Create an object of type CellT from cell contents represented as string_view.
Definition csv_policies.h:96
static constexpr bool useEmptyCellType() noexcept
If true, empty cell type is a separate type from (empty) string.
Definition csv_policies.h:78