Skip to content

Add 'boost::intersperse' string algorithm - #111

Open
denzor200 wants to merge 4 commits into
boostorg:developfrom
denzor200:feature/intersperse
Open

Add 'boost::intersperse' string algorithm#111
denzor200 wants to merge 4 commits into
boostorg:developfrom
denzor200:feature/intersperse

Conversation

@denzor200

Copy link
Copy Markdown
Contributor

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

Comment threadstring/test/intersperse_test.cpp Outdated
Comment threadstring/test/intersperse_test.cpp Outdated
@jgopel

Copy link
Copy Markdown
Contributor

👍 LGTM - @mclow will have to approve.

@denzor200

Copy link
Copy Markdown
ContributorAuthor

@mclow hello, would you like to review this PR?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@denzor200@jgopel