ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Types | List of all members
FIsTrue Struct Reference

Class Description


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 Types

using Signature = bool(*)(const Box &self)
 

Member Typedef Documentation

◆ Signature

using Signature = bool (*) ( const Box& self)

Signature of the invokable function.

Parameters
selfThe box that the function was invoked on.
Returns
Return value and type is implementation specific.

Definition at line 381 of file functions.inl.


The documentation for this struct was generated from the following file: