Page Speed Optimization Libraries
1.13.35.1
|
#include "file_system.h"
Public Member Functions | |
BoolOrError (bool t_or_f) | |
BoolOrError (const BoolOrError &src) | |
Intended to be passed by value; explicitly support copy & assign. | |
BoolOrError & | operator= (const BoolOrError &src) |
bool | is_false () const |
bool | is_true () const |
bool | is_error () const |
void | set_error () |
void | set (bool t_or_f) |
Three-way return type for distinguishing Errors from boolean answer.
This is physically just an enum, but is wrapped in a class to prevent accidental usage in an if- or ternary-condition without explicitly indicating whether you are looking for true, false, or error.