cbegin and cend are useful with auto. in your case it has no much sense