SHOGUN  6.1.3
Classes | Functions | Variables
maybe.h File Reference

Go to the source code of this file.


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"). More...


template<typename T >
static Maybe< T > Just (const T &value)


static const char * NO_REASON_FOR_ABSENCE = "AVAILABLE"

SHOGUN Machine Learning Toolbox - Documentation