Function rcpputils::require_true
Defined in File asserts.hpp
Function Documentation
-
inline void rcpputils::require_true(bool condition, const std::string &msg = "invalid argument passed")
Check that an argument condition passes.
- Parameters:
condition – [in] condition that is asserted to be true
msg – [in] message to pass to exception when condition is false
- Throws:
std::invalid_argument – if the condition is not met.