Hi mates I m new to C++ and I am trying to understand some code.
->Could one of u please explain me the three following lines of code:

std::map<Pos3D,Object3D> Found3Dobjects;
std::map<Pos3D,Object3D>::iterator Found3Dobjects_iter;
typedef std::map<Pos3D,Object3D>::value_type Found3Dobjects_Pair;

I read some tutorial for maps and got the idea. What I completely dont understand is the third line and especially the folowing:

::value_type
Ancient Dragon commented: code tags :) +36
Member Avatar for jencas

Have a look at the source code of std::map and search for 'value_type'. Then you'll understand. Hopefully.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.