Topic: can 0 be used as sentinel value for pointers to members ?
Author: kanze@gabi-soft.fr (J. Kanze)
Date: 1995/11/18 Raw View
Christian Millour (chris@etca.fr) wrote:
|> Hi all.
|> Can 0 be used as sentinel/null value for pointer-to-member data
|> or functions, the way it is used for ordinary pointers ?
Yes. It is guaranteed that no valid pointer to member will ever compare
equal to 0.
--
James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils, itudes et rialisations en logiciel orienti objet --
-- A la recherche d'une activiti dans une region francophone
---
[ 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. ]