Browse Source
We can just use the variant of std::string's replace() function that can replace an occurrence with N copies of the same character, eliminating the need to allocate a std::string containing a buffer of spaces.nce_cpp
2 changed files with 7 additions and 8 deletions
Loading…
Reference in new issue