Hi everyone,

Can anyone help me in understanding the use of operator keyword in the following code -

class Font {

public:

...

operator FontHandle() const { return f; }


...
private:
FontHandle f;
};

I know the behaviour of this operator member, whenever the obj of Font class is used in an expression, this operator member is invoked. But I(with my limited knowledge of c++) cannot understand this declaration.

Thanks.