Struct isSet

Struct Documentation

struct isSet

Check if given value can be regarded as being set.

One Check struct that checks whether the given value can be considered set, by applying notFalse and notEmpty checks. Value thus is set if: STL cotnainer not empty OR bool is true OR boost optional is set OR number is not 0. Parameter can be of above types or even boost none_t. NOTE: use this if you don’t know wheter a type has and “empty” method.

Public Functions

template<typename T>
inline bool operator()(const T &val) const