(C++) std::replace

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) std::replace

 

Algorithm to replace elements in containers.

 

 

 

 

 

Replace code snippets

 

  • Replace_range: replace a range in a container by another range
  • ReplaceAll: replace all substrings by another in a certain std::string
  • ReplaceOnce: replace a substring by another in a certain std::string once