Closed alt-graph closed 2 years ago
Add repeat() to repeat a string N times
The C++ standard library has no convenient function to repeat a string N times, but it is occasionally useful:
auto str = repeat("du", 3); // returns "dududu"
Add repeat() to repeat a string N times
The C++ standard library has no convenient function to repeat a string N times, but it is occasionally useful: