Template Function ros2_control::add_item

Function Documentation

template<typename T>
void ros2_control::add_item(std::vector<T> &vector, const T &item)

Add the item to the container if it is not already in it.

Parameters:
  • vector – The container to add the item to.

  • item – The item to add.