gotw

Why not resize and clear works in GotW 54?

Referring to article Gotw 54 by HerbSutter, he explain about 1.Tthe Right Way To "Shrink-To-Fit" a vector or deque and 2.The Right Way to Completely Clear a vector or deque Can we just use container.resize() and container.clear() for above task or Am I missing something. ...