Class line_parser

Class Documentation

class line_parser

Parses a single line into a vector of tokens broken on the specified delimiter.

Public Functions

inline explicit line_parser(char delim)
inline std::vector<std::string> operator()(const std::string &line) const

Parse a line into a vector of tokens, split on delimiter.

inline std::vector<std::string> operator()(std::stringstream &ss) const

Public Static Functions

template<typename T>
static inline std::vector<T> as(const std::vector<std::string> &v)