Function rcpputils::check_true

Function Documentation

inline void rcpputils::check_true(bool condition, const std::string &msg = "check reported invalid state")

Check that a state condition passes.

Parameters:
  • condition[in] condition to check whether it is true or not

  • msg[in] message to pass to exception when condition is false

Throws:

rcpputils::IllegalStateException – if the condition is not met.