Steven Watanabe | 16 Jul 02:12
Picon

Re: how can I return a 'null' smart pointer?

AMDG

Meryl Silverburgh wrote:
> So when I do this:
>
> shared_ptr<MyClass> aPtr;
>
> and then I check for 'null' , like this:
>
> if (aPtr == NULL) {
> // will it return true here?
>   
Yes.  It will be true.

In Christ,
Steven Watanabe

Gmane