Struct isValidUnit

Inheritance Relationships

Base Type

Struct Documentation

struct isValidUnit : public nix::valid::isUnit

Check if given class represents valid SI unit string(s)

One Check struct that checks whether the given string(s) represent(s) a valid atomic or compound SI unit. Parameter can be of type boost optional (containing nothing or string) or of type string or a vector of strings.

Public Functions

inline virtual bool operator()(const std::string &u) const
inline bool operator()(const boost::optional<std::string> &u) const
inline bool operator()(const std::vector<std::string> &u) const