zorba::internal::ztd::explicit_bool#include <zorba/internal/ztd.h> Helper class for implementing a solution to the "explicit bool conversion" problem. The canonical use is of the form:class your_class { // ... operator explicit_bool::type() const { return explicit_bool::value_of( some_expression ); } };See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2333.html Public Types
Public Static Functions
Public Typestypeint pointer_conversion::* type
Public Static Functionsvalue_ofstd::enable_if< ZORBA_TR1_NS::is_convertible< T, bool >::value, type >::type value_of(T const &value) Converts the given value to an explicit bool value.
Parameters
Parameters
ReturnsReturn said value. |