[vtkusers] how to know wheter an smart pointer is null

Aron Helser aron.helser at kitware.com
Fri Nov 10 09:49:43 EST 2017


Hi!
I believe all the smart pointers have a boolean operator, so you can just
do:
if ( !name ) { //pointer "name" is null... }

On Fri, Nov 10, 2017 at 1:15 AM, 舞法舞天 <278124177 at qq.com> wrote:

> hi:
>   How can i judge an smart pointer is null?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171110/9666f8ab/attachment.html>


More information about the vtkusers mailing list