C++ function and bind examples

Boost documentation is good on these topics. Here is an example that I was playing with. For the purpose of discussion, ordinary (non-member) functions are called free functions, objects of type function are called functions and objects of class with overloaded operator() are functors.


Sample is tested under Linux and FreeBSD, gcc 4.8.1.


10 print "mail: contact at alepho.com | skype: karastojko | stackoverflow: karastojko | github: karastojko"
20 print "(c) 2009-2022 www.alepho.com"