26 #if ! defined (octave_str_vec_h)
27 #define octave_str_vec_h 1
29 #include "octave-config.h"
61 template<
template <
typename...>
class String_Container,
typename... Other>
62 string_vector (
const String_Container<std::string, Other...>& lst);
65 : m_data (s.as_column ()) { }
102 bool isempty (
void)
const {
return m_data.isempty (); }
128 std::string join (
const std::string& sep =
"")
const;
130 char ** c_str_vec (
void)
const;
132 std::list<std::string> std_list (
void)
const;
134 static void delete_c_str_vec (
const char *
const*);
137 list_in_columns (std::ostream&,
int width = 0,
138 const std::string& prefix =
"")
const;
147 return m_data.map<U> (fcn);
156 template<
template <
typename...>
class String_Container,
typename... Other>
164 for (
const std::string& s : lst)
Vector representing the dimensions (size) of an Array.
string_vector(void)=default
std::string elem(octave_idx_type i) const
string_vector(const char *s)
string_vector(const Array< std::string > &s)
void resize(octave_idx_type n, const std::string &rfv="")
std::string & xelem(octave_idx_type i)
std::string & elem(octave_idx_type i)
string_vector(octave_idx_type n)
std::string xelem(octave_idx_type i) const
string_vector linear_slice(octave_idx_type lo, octave_idx_type up) const
octave_idx_type max_length(void) const
string_vector(const std::string &s)
string_vector(const string_vector &)=default
octave_idx_type numel(void) const
Array< U > map(F fcn) const
Array< std::string > m_data
~string_vector(void)=default
string_vector(string_vector &&)=default
T::size_type numel(const T &str)