As vectors are optimized containers, the mentioned functions should work with them to achieve their full potential!