The "overloaded" variant-visit pattern.
The C++ std::visit (typeswitch dispatch) is very useful for std::variant but doesn't support it natively. There is a commonly used two-line boilerplate that bridges this gap; see https://en.cppreference.com/w/cpp/utility/variant/visit
This file should be included by classes that wish to use the variant visit pattern, i.e.
tools/lint/drakelint.py
.