This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CHECKLIST and "implementation defined"


On Thu, May 15, 2003 at 05:33:35PM -0400, Phil Edwards wrote:
> 17_intro/CHECKLIST is horribly out of date.  No particular blame there,
> it just is.  So I'm starting to bring it up to date, at least partially.
> 
> The containers have status flags for each of their required members.  The
> container as a whole then gets the "worst" scoring flag of all its members.
> Right now we have a lot of containers that look like this:
> 
>  X  class foo {
>     public:
>  T    typedef typename Allocator::reference         reference;
>  T    typedef typename Allocator::const_reference   const_reference;
>  X    typedef implementation defined                iterator;
>  X    typedef implementation defined                const_iterator;
>  T    typedef implementation defined                size_type;
>  T    typedef implementation defined                difference_type;
> 
>  T    everything else
>     };
> 
> I don't consider the iterators to be "partially implemented or buggy,"
> so this is a proposal to upgrade their status to T.  Thoughts?

Agreed.  IIRC they started out as "partial" because of things like
vector<> and basic_string<> iterators implemented as pointers, and
not being derived from iterator<>.

I wonder if there are new elements introduced in TC1.  Seems like
there may have been some mem_fun follies.

Nathan Myers
ncm-nospam@cantrip.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]