Template Function rsl::not_empty

Function Documentation

template<typename T>
auto rsl::not_empty(rclcpp::Parameter const &parameter) -> 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