I was reading about closures on the net. I was wondering if C++ has a built-in facility for closures or if there is any way we can implement closures in C++?
Yes, C++11 has closures named lambdas.
In C++03 there is no built-in support for lambdas, but there is Boost.Lambda implementation.