Abraxas/Meyers: Effective C++  Home  Table of Contents

Module - m15.html

ABRAXAS SOFTWARE - CodeCheck Meyers: Effective C++ Test-Suite

Meyers: Effective C++ Test Suite for Module - m15.cpp

// Item 15: Provide access to raw resources in resource-managing classes. 69

class FH {
};
class Font1 {
public:
	operator FH() const	// implicit
	{return f;}
	
private:
	FH f;



Function Name: operator_class_FH()

};
class Font2 {
public:
	 FH get() const	// explicit
	{return f;}
private:
	FH f;



Function Name: get()

};

Abraxas/Meyers: Effective C++  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck Meyers: Effective C++ Test-Suite