Re: [Boost-Users] testing if shared_ptr has been assigned
From the docs: <snippet> get
T * get() const; // never throws
Returns: the stored pointer.
Throws: nothing.
</snippet>
Therefore you can use
if( b.get() )
or
if( b.get() == NULL )
"TEA Hartmann,
Steven" To: boost-users@yahoogroups.com
participants (1)
-
dick.bridges@tais.com