algorithm
algorithm copied to clipboard
Add 'boost::intersperse' string algorithm
Analague of ranges::views::intersperse from range-v3 library.
const std::string input{"foobarbaxbat"};
std::cout << boost::intersperse_copy(input, ',') << '\n'; // Outputs: f,o,o,b,a,r,b,a,x,b,a,t
👍 LGTM - @mclow will have to approve.
@mclow hello, would you like to review this PR?