The example exercise of <Effective C++>.