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
|