Topic: can 0 be used as sentinel value for pointe
Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1995/11/17 Raw View
In article lhe@etca.etca.fr, chris@etca.fr (Christian Millour) writes:
>
>Can 0 be used as sentinel/null value for pointer-to-member data
>or functions, the way it is used for ordinary pointers ?
Yes.
A constant integral zero serves as a null pointer-to-member just as it
serves as a null data pointer or function pointer.
---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]