BoolLValue Class Reference

#include <apibase.h>

Detailed Description

Use this class when you need a default argument for parameters of type Bool&. As an example, consider a function which adds elements to some set:

Result<void> Add(Element* e, Bool& added = BoolLValue());

e could already exist before in the set, so added is set to indicate if e was really added. If you as a caller are not interested in this, the default argument helps to provide a valid temporary lvalue object.

Public Member Functions

 operator Bool & ()

Private Attributes

Bool _value

Member Function Documentation

◆ operator Bool &()

operator Bool & ( )

Member Data Documentation

◆ _value

Bool _value
maxon::Bool Bool
Definition: ge_sys_math.h:53