From the answers of the respected Igor Tandetnik and Akhmed AEK, you can see that moving elements from a map to a vector is not a very good idea from an efficiency point of view. Look towards the views: enter link description here, enter link description here