cpp vector swap test