Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact:
U.S. Corporate and Government Sales (800) 382-3419 [email protected]
For sales outside the United States please contact:
International Sales [email protected]
Library of Congress Cataloging-in-Publication Data
Meyers, Scott (Scott Douglas) More effective C++: 35 new ways to improve your programs and designs / Scott Meyers. p. cm.—(Addison-Wesley professional computing series) Includes bibliographical references and index. ISBN 0-201-63371-X (paperback: alk. paper) 1. C++ (Computer program language) I. Series. QA76.73.C153M495 1996 005.13'3—dc20 95–47354 CIP
Copyright © 1996 by Addison-Wesley©
All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:
Pearson Education, IncRights and Contracts Department501 Boylston Street, Suite 900Boston, MA 02116Fax (617) 671-3447
ISBN-13: 978-0-201-63371-9
Text printed in the United States on recycled paper at Courier in Stoughton, Massachusetts.
28th Printing June 2010
Second e-book release, April 2011 (Identical to the 28th Paper Printing).