Topic: STL container class public Types


Author: "Jaideep Baphna" <jbaphna@dataware.com>
Date: 2000/02/24
Raw View
Hi,

All STL container classes define several public Types like: value_type,
reference, difference_type.
hese appear to be simply typedefs from other simple types. What is the
purpose of these aliases ? Why not use the original typename instead ?

Thanks
JB


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]