MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / eraseDemo

Function eraseDemo

cpp_20/017_vector_erase.cpp:6–13  ·  view source on GitHub ↗

Function to demo erase()

Source from the content-addressed store, hash-verified

4
5// Function to demo erase()
6void eraseDemo(string str)
7{
8 // Deletes all characters
9 str.erase();
10
11 cout << "After erase():";
12 cout << str;
13}
14
15// Driver code
16int main()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected