basic_string sınıf şablonunun en önemli içsel türlerinden (nested types) biri size_type türüdür. size_type türünün bildirimi şu şekildedir:
1 2 3 4 5 6 7 8 9 10 |
namespace std { template <typename CharType, typename TraitsType = char_traits<CharType>, typename AllocatorType = allocator<CharType> > class basic_string { public: // typedef typename Allocator::size_type size_type; static const size_type npos = -1; }; |
Bildirimden de görüldüğü gibi aslında size_type üçüncü