Original Post
I'm a STL newb and I've been doing some Googling but haven't come up with anything specific with respect to vector::insert I've a vector of tiles and What I want to do is access the Tile by [] or at(). push_back doesn't give me the exact thing I need because I'm not guaranteed the exact [] access. I'll be storing the Tilenumber on my map and need an exact query to vectTiles.at(tilenum).
I use to have vectTiles.insert(tilenum, pNewTile) but recognized I need an iterator to insert rather than just tilenum. When I run this, it looks like the nothing is allocated as yet in the Vector. Is there a preliminary step before using Insert? ZoomBoy Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site
|