StringList.hpp
A class for representing a list of strings with special constructors.
Definition: StringList.hpp:28
StringList(const char *str)
Construct a StringList instance by breaking the words within separated by space.
StringList(const char *str, char token)
Construct a StringList instance by breaking the words within separated by a token.
StringList(std::string str)
Construct a StringList instance by breaking the words within separated by space.
auto end()
Return end iterator of this StringList instance (for STL compatibility reasons).
Definition: StringList.hpp:102
StringList(std::initializer_list< std::string > strings)
Construct a StringList instance with a initializer list of strings.
auto begin() const
Return begin const iterator of this StringList instance (for STL compatibility reasons).
Definition: StringList.hpp:93
auto begin()
Return begin iterator of this StringList instance (for STL compatibility reasons).
Definition: StringList.hpp:96
auto end() const
Return end const iterator of this StringList instance (for STL compatibility reasons).
Definition: StringList.hpp:99
std::string value_type
The type of the value stored in a StringList instance (for STL compatibility reasons).
Definition: StringList.hpp:105
auto data() const -> const std::vector< std::string > &
Return the vector of strings.
StringList(std::vector< std::string > strings)
Construct a StringList instance with a vector of strings.
StringList(std::string str, char token)
Construct a StringList instance by breaking the words within separated by a token.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto index(const Container &c, const T &x) -> std::size_t
Return the index of item x in container c or the number of items if not found.
Definition: Algorithms.hpp:37
auto str(Args... items) -> std::string
Concatenate the arguments into a string without any separator string.
Definition: StringUtils.hpp:73