#include #include #include using std::vector; using std::cout; using std::endl; template void iteratorTraitsTest(IteratorType it) { typename std::iterator_traits::value_type temp; temp = *it; cout << temp << endl; } int main(int argc, char** argv) { vector v; v.push_back(5); iteratorTraitsTest(v.begin()); return (0); }