C++ Strings under the STL?
I had the impression that C++ strings arent implemented as a template class, so they dont come under the standard template library.
A little googling appears to confirm this.
http://www.msoe.edu/eecs/ce/courseinfo/stl/
However, I've also seen references to "STL strings", which apparently refer to C++ strings, i.e. those using <string>
Are C++ strings considered as part of the STL then?
Re: C++ Strings under the STL?
Quote:
Originally posted by laserlight
I had the impression that C++ strings arent implemented as a template class, so they dont come under the standard template library.
The STL string class is implemented as a template class, its just the string itself is a specialization for ASCII chars. It is basically defined as:
typedef basic_string<char, char_traits<char>, allocator<char> > string;