Quote Originally Posted by w3rd
what do you mean by container type T? Like vector or list?
vector::value_type wouldnt make much sense, would it?
Say, std::vector<int>, std::list<double>, std::vector<long, some_allocator_type>, etc.

By the way, JohnW@Wessex's example is missing the typename keyword before typename T::value_type.