const passed to vector function