While reading the documentation for boost::test, I came across the term “free function”. What I understand is that a free function is any function that doesn’t return anything (Its return type is void). But after reading further it seems that free functions also don’t take any arguments. But I am not sure. These all are my assumptions. So could anybody define free function?
While reading the documentation for boost::test, I came across the term free function. What
Share
The term free function in C++ simply refers to non-member functions. Every function that is not a member function is a free function.