This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> I thought that any function calling operator++ on an iterator would need to > know sizeof(T)? Well, list::operator++ specifically does not need to know the size of the list elements; it is a linked list. OTOH, list::insert (which does call operator++) not only needs to know sizeof(T), but also copy constructors. Regards, Martin
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |