#include #include #include #include int main() { std::vector a; std::vector b; std::vector c; typedef CGAL::Dispatch_output_iterator< CGAL::cpp0x::tuple, CGAL::cpp0x::tuple >, std::back_insert_iterator< std::vector >, std::back_insert_iterator< std::vector > > > Dispatch; Dispatch disp = CGAL::dispatch_output( std::back_inserter(a), std::back_inserter(b), std::back_inserter(c)); typedef boost::variant var; var va = 23; var vb = 4.2; var vc = 'x'; // goes to a *disp++ = va; // goes to b *disp++ = vb; // goes to c *disp++ = vc; // goes to a *disp++ = 42; return 0; }