Reputation: 7863
Is it possible to find in the net the full implementation of the STL Set, particularly I'm interested in the iterator?
Upvotes: 4
Views: 2141
Reputation: 156158
If you are having a hard time locating the implementation of set, then you will probably find it very difficult to understand what you are reading when you eventually do find it. The STL is well known for being one of the hardest bits of C++ code to understand, and this is especially true of the more complex container classes it provides (std::find is actually pretty easy, by comparison).
Instead, it might be an easier task to look at some example code written for use by normal humans, instead of the inscrutable code found in the most common STL implementations. This looks promising, and compares pretty well with what std::set
actually really does.
Upvotes: 0
Reputation: 10260
You can also browse the SGI STL online here: http://www.sgi.com/tech/stl/set.
Upvotes: 0
Reputation: 76755
#include <set>
and "Open Document" : the IDE will search the include paths for you and open up the file regardless of your installation directoryUpvotes: 1
Reputation: 52519
If you have a C++ compiler you should be able to look in the <set>
header file.
Upvotes: 0