Function throwIfNotPresent

Function Documentation

inline void throwIfNotPresent(const bool is_present, const std::string val_desc)

Throws an exception if the given value is not present.

Parameters:
  • is_present – Whether the value is present.

  • val_desc – Description of the value for the exception message.