What is the meaning of const in declarations like these? The const confuses me.
const
class foobar { public: operator int () const
The const keyword used with the function declaration specifies that it is a const member function and it will not be able to change the data members of the object.