This is one of the built-in box-functions of ALib Boxing . This function is used to give an answer to the question if a boxed value represents boolean value true
or false
. This is useful if "yes/no" decisions should be taken based on arbitrary boxed values.
A default implementation is registered which for non-array types just interprets the first integral value in the Placeholder : If it is not 0
, true
is returned, false
otherwise.
For array types, the default implementation returns true
if method Box::UnboxLength returns a value different to 0
, otherwise false
is returned.
Definition at line 373 of file functions.inl.
Public Type Index: | |
using | Signature = bool (*) ( const Box& self) |
Signature of the invokable function.
self | The box that the function was invoked on. |
Definition at line 381 of file functions.inl.