You might write your own container with random-access iterators...
There is std::iterator_traits that can tell you the category of an iterator. This requires some extreme template programming, of course.![]()
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: type checkingThreaded View
|
Click Here to Expand Forum to Full Width |