Template Function rsl::not_empty
Defined in File parameter_validators.hpp
Function Documentation
-
template<typename T>
auto rsl::not_empty(rclcpp::Parameter const ¶meter) -> tl::expected<void, std::string> Is the size of the value passed in not zero?
- Template Parameters:
T – Interior type of array or std::string; e.g. for parameter type double_array, T = double
- Pre:
rclcpp::Parameter must be an array type or a string
- Returns:
Help string if the parameter is invalid, otherwise void