Discussion: set of pointers
Afficher un message
Vieux 26/02/2008, 16h44   #2
Fei Liu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: set of pointers

REH wrote:
> Is it well defined to use a std::set of pointers? I ask because of
> the restrictions on using relational operators with pointers. Does a
> set of pointers suffer from the same restrictions, or does the
> standard require it to be supported. I can't find any information one
> way or the other in the standard or from other sources.
>
> Thanks,
> REH


std::set of pointers are well supported, pointers have value semantic,
comparable.

The relational operators you refer work fine because pointers can be
compared by value.

Fei
  Réponse avec citation
 
Page generated in 0,08261 seconds with 9 queries