类 | |
| class | Nothing |
| class | Maybe< T > |
| Holder that represents an object that can be either present or absent. Quite simllar to std::optional introduced in C++14, but provides a way to pass the reason of absence (e.g. "incorrect parameter"). 更多... | |
函数 | |
| template<typename T > | |
| static Maybe< T > | Just (const T &value) |
变量 | |
| static const char * | NO_REASON_FOR_ABSENCE = "AVAILABLE" |