>> it removes an element from the container, it just doesn't destroy the element.
That sentence is misleading. If it removed the element(s) from the container, then if you check size() after the call to remove it would be different, but it is not. It does not actually remove elements from the container or destroy them, it simply manipulates the contents of the container so that you can actually remove those items if you choose to do so.