Template Function sequant::join_strings

Function Documentation

template<typename String, typename Range, typename Proj = std::identity>
String sequant::join_strings(Range &&rng, std::basic_string_view<typename String::value_type> separator, Proj proj = {})

Joins the elements of a range into a string

Template Parameters:

String – the string type to produce

Parameters:
  • rng – the range to join

  • separator – inserted between consecutive elements

  • proj – maps each element to something appendable to String

Returns:

the projected elements of rng, separated by separator