tables::column::to_string

std::string
column<std::string_view>::to_string(const std::string_view delim = "" ) const;

Concatenates all strings into one using delim as delimiter.

Complexity

Linear

Example

Code

#include <cpptables/table.hh>

using namespace tables;
using namespace std;

void column_to_string()
{
  using sv_column = column<std::string_view>;

  const sv_column xs({ 
    "abc",
    "def",
    "ghi"
  });


  cout << xs.to_string("_") << "\n";
}

Output

abc_def_ghi