xieite ::visitor {}
Defined in fragment xieite :visitor
(header-only:
<xieite/fn/visitor.hpp>
)
Derives from multiple functors and inherits their call operators.
Declaration
template <typename... Fs >struct visitor :Fs ... {using Fs ::operator ()...; };
Example
Output:import std ;import xieite ;int main () {auto f =xieite ::visitor ( [](int ) {std ::"a ); }, [](\n "double ) {std ::"b ); }, [](\n "bool ) {std ::"c ); } );\n "f (3.14159 ); }
View in Compiler Explorerb