#include <apibase.h>
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.
公共成员函数 |
|
operator Bool & () |
Private Attributes |
|
Bool | _value |
operator Bool & | ( | ) |
|
private |