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

Auton operator+(const char* name, std::function<void()> fn)

Generates an auton from the name and function.

Parameters

  • name - The name of the auton.
  • fn - The function to add to the auton.

Returns

A new auton

Example

Auton skillsAuton = "Skills" + [](){
    //Auton code here
};