https://www.atnnn.com/p/operator-larrow/ Etienne Laurin Articles About C++ left arrow operator Posted on July 29, 2016 Sometimes you have a pointer to a class, and you want to invoke a method. You can use the -> operator for that. So what do you do when you have a pointer to a method, and want to invoke it on a class? Use the <- operator! #include template struct larrow { larrow(T* a_) : a(a_) { } T* a; }; template R operator<(R (T::* f)(), larrow it) { return (it.a->*f)(); } template larrow operator-(T& a) { return larrow(&a); } struct C { void f() { std::cout << "foo\n"; } }; int main() { C x; (&C::f)<-x; } (c) 2010-2023 Etienne Laurin