Cpp: Show index of prepend when adding