I want to add the closing parenthesis where the string starts with [[
I tried using find_if, replace_if but it turns out that something isn’t right
std::vector<std::string> vector(3);
contains:
0: text
1: [[text
2: text
What I want:
0: text
1: [[text]]
2: text
Could you help with algorithm explanation?
Maybe something like this:
If you want to check for already existing brackets, add some more checks.