ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::boxing::FIsTrue Struct Reference

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 a 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 341 of file functiondecls.inl.

Public Type Index:

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

Type Definition Details:

◆ Signature

using alib::boxing::FIsTrue::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 347 of file functiondecls.inl.


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