Loading...
Searching...
No Matches
Go to the documentation of this file.
36#ifndef Alembic_Util_OperatorBool_h
37#define Alembic_Util_OperatorBool_h
42#define ALEMBIC_OPERATOR_BOOL( PASS_COND ) \
43void __unspecified_bool_type_fcn() const {} \
44typedef void (this_type::*unspecified_bool_type)() const; \
45operator unspecified_bool_type() const \
47 return ( PASS_COND ) ? &this_type::__unspecified_bool_type_fcn : 0; \
49bool operator! () const \
51 return !( PASS_COND ); \
56#define ALEMBIC_OVERRIDE_OPERATOR_BOOL( PASS_COND ) \
57operator unspecified_bool_type() const \
59 return ( PASS_COND ) ? \
60 &operator_bool_base_type::__unspecified_bool_type_fcn : 0; \
62bool operator! () const \
64 return !( PASS_COND ); \