Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Auton& operator+(std::vector<int> vec)

Attaches given SelectorArr values to the auton.

This function does NOT make a copy of the auton, it modifies the auton in place. Some of you might think that this function should be on the operator+= function, but I decided to put it on the operator+ function because I think it is actually more intuitive to use when making autons.

It is preferred to use the other operator+ function instead of this one, because it is easier to read and understand (because it puts the array before the function).

Parameters

  • vec - The SelectorArr values to attach to the auton.

Returns

A reference to the auton.

Example

Auton skillsAuton = "Skills" + [](){
    //Auton code here
} + vector<int>({3, 4});