Visual C++ Templates

Visual C++ Templates

2 (1 rating by Goodreads)
By (author)  , By (author) 

List price: US$49.99

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks

Description

The Standard Template Library (STL) encapsulates the pure raw horsepower of C/C++, plus the industry's most efficient algorithms and data structures. This book gives you the insight you need to leverage STL's power, by first teaching the advanced C/C++ fundamentals that make the STL possiblez Begin with a high-level view of STL that explains how it is constructed, and its key elements, including containers, iterators, and algorithms. Master key Visual C++ features such as Pointers, void pointers, templates and classes. Take advantage of the latest ANSI/ISO C++ standards, including key improvements such as namespaces, new-style type casting, and runtime type information. Then, learn STL in-depth, with extensive code samples covering language support, diagnostics, general utilities, strings, locales, numerics, I/O, and more.show more

Product details

  • Paperback | 544 pages
  • 175.26 x 233.68 x 38.1mm | 1,043.26g
  • Pearson Education (US)
  • Prentice Hall
  • Upper Saddle River, United States
  • English
  • 0130224871
  • 9780130224873

Table of contents

(NOTE: Each chapter concludes with a Summary.) 1. What Is the Standard Template Library? The Complexity of Multiplatform Target Environments. Unintentional Misuse or Ignorance of C/C++ Features. Data StructuresA *The Course to Separate Hackers from Pros! So, Just What Is the Standard Template Library? The Origins of STL. What Do I Need to Know to Take Advantage of STL? A High-Level View of STL. Kudos to the ANSI/ISO C++ Committee. STL's Tri-Component Nature. Containers. Container Adapters. Algorithms. Iterators. Additional Elements. STL Review. In the Following Chapters. 2. Understanding Template Syntax. C Overview. Dynamic Memory Allocation and Pointers. Static vs Dynamic. Typed Pointers. Void Pointers. What's the i in iValue? Function Overloading. Pointers to Functions. Structures as Objects. A Structure as a Primitive Class. The Syntax and Rules for C++ Classes. A Simple C++ Class. C++ Class Objects. Additional Class Features. Nesting Classes. Constructors and Destructors. Overloading Class Member Functions. Using Friend Functions to Access Private Class Variables. Using the this Pointer. Using Operator Overloading. Derived Classes. Templates in C! Structures as Simple Templates. C++ Template Keyword. Template Syntax. Function Templates. Class Templates. The Need for Standardization. 3. Standard C++ Library and STL Fundamentals. Latest C++ ANSI/ISO Language Updates. Using Namespace. Namespace Syntax. The Using Namespace Statement. The Selective Using Statement. Renaming Namespaces. Static File Scope vs. Unnamed Namespaces. New Casting Operations. Dynamic Casting. Static Casting. Newer C-Type Cast. Constant Cast. Run-Time Type Information. Introduction to the Standard C++ Library. The Standard C++ Libraries. Your First Standard C++ Library Application. Implementing Your Own Template. Your First class Template. Function Templates Requirements. Using a class Template. Class Template Parameters. Default Template Parameters. The Standard Template Library. STL Components. Rules for Using STL. Function Objects. STL Function Objects. STL Function Adapters. Pointer-to-Function Adapters. Standard Template Library Algorithms. Standard C++ Library Language Support. cstddef. Implementation Properties: limits, climits, cfloat. Exception Handling. Additional Support. 4. STL Support Templates. From iostream.h to . From iosream.h to . Exception Handling Under the New ANSI C/C++/ISO Standard. The and Templates. Template Syntax. struct pair. make_pair. Template Overloaded Operators. The mak_par.cpp Application. The util_oprs.cpp Application. Template Syntax. unary_function. binary_function. plus. minus. multiplies. divides. modulus. negate. equal_to. not_equal_to. greater. less. greater_equal. less_equal. logical_and. logical_or. logical_not. unary_negate. binary_negate. binder1st. binder2nd. pointer_to_unary_function. pointer_to_binary_function. mem_fun_t. mem_fun1_t. mem_fun_ref_t. mem_fun1_ref_t. Template Functions. The functnl.cpp Application. 5. The STL Template. Template Syntax. Template Methods. Sample Code. The find.cpp Application. The rndshfl.cpp Application. The removif.cpp Application. The setunon.cpp Application. 6. The STL Template. Iterator Hierarchy. Input and Output Iterators. Forward Iterators. Bidirectional Iterators. Random Iterators. Legal Iterator Range. Important Naming Conventions. Template Syntax. Class Definitions. Template Overloaded Operators. Template Iterators. The iteratr1.cpp Application. The iteratr2.cpp Application. 7. The Template. Templatized Vectors. Instantiating Vectors. Understanding Vector Template Functions. Accessing Elements. Insertion and Removal of Elements. Two Different Vector Size Descriptors. Other Operations. Template Syntax. Template typedefs. Overloaded Operators. Template Methods. Sample Code. The vector1.cpp Application. The vector2.cpp Application. 8. The STL Template. Adaptors. Template Syntax. Template Overloaded Operators. Template Methods. Sample Code. The stack.cpp Application. 9. The STL and Templates. The Template Syntax. Template Methods. The Template. The Template Syntax. Overloaded Operators. Template Methods. Sample Code. The queue.cpp Application. The deque.cpp Application. 10. The STL Template. Template Syntax. allocator_type. size_type. difference_type. reference. const_reference. value_type. iterator. const_iterator. reverse_iterator. const_reverse_iterator. Template Methods. Sample Code. The list1.cpp Application. The list2.cpp Application. The list3.cpp Application. 11. The STL Template. Containers Revisited. Template Syntax. Template Methods. Sample Code. The map.cpp Application. 12. The STL Template. Template Syntax. Template Methods. Sample Code. The accum.cpp Application. The product.cpp Application. The partsum.cpp Application. The adjacent.cpp Application. Windows Application Using . 13. The and Templates. and Template Syntax. and Template Functions. Template Methods. Sample Code. The set1.cpp Application. The set2.cpp Application. The set3.cpp Application. 14. The Template. Template Syntax. Template Operators. Template Methods. Sample Code. The new1.cpp Application. The size2.cpp Application. 15. The Template. Template Syntax. Template Overloaded Operators. Template Methods. Sample Code. The bitset1.cpp Application. The bitset2.cpp Application. The bitset3.cpp Application. The bitset4.cpp Application. 16. The , , , and Standard C++ Headers. The Header Syntax. The Header Syntax. ECHILD. EAGAIN. E2BIG. EACCES. EBADF. EDEADLOCK. EDOM. EEXIST. EINVAL. EMFILE. ENOENT. ENOEXEC. ENOMEM. ENOSPC. ERANGE. EXDEV. The Header Syntax. exception. bad_exception. terminate_handler. unexpected_handler. set_terminate. set_unexpected. terminate(). unexpected(). uncaught_exception. The Header Syntax. logic_error class. domain_error class. invalid_argument class. length_error class. out_of_range class. runtime_error class. range_error class. overflow_error class. underflow_error class. Sample Code. A Application. The termin2.cpp Application. 17. The and Standard C++ Headers and Template Class. The Standard C++ Header Syntax. The standard C++ Header Syntax. Template Syntax. Template Functions. The basic_string class. Sample Code. A Application. A Application. The First Application. The Second Application. The Third Application. The Fourth Application. 18. The and Standard C++ Headers and Template Class. The Standard C++ Header Syntax. The standard C++ Header Syntax. Complex Numbers. Template Syntax. Sample Code. A Application. A Application. The First Application. The Second Application. The Third Application. 19. The , , and Standard C++ Headers. The Header Syntax. Character Ranges. Integer Ranges (8 bits). Integer Ranges (16 bits). Integer Ranges (32 bits). Integer Ranges (64 bits). Integer Ranges (128 bits). POSIX Ranges. The Header Syntax. has_denorm. has_denorm_loss. has_infinity. has_quiet_NaN. has_signaling_NaN. is_bounded. is_exact. is_iec559. is_integer. is_modulo. is_signed. is_specialized. tinyness_before. traps. round_style. digits. digits10. max_exponent. max_exponent10. min_exponent. min_exponent10. radix. denorm_min. epsilon. infinity. max. min. quiet_NaN. round_error. signaling_NaN. The Header Syntax. signal(). raise(). Sample Code. A Range Application. The Radix Application. The Exponent Application. 20. The , , and Standard C++ Headers. The Header Syntax. The Header Syntax. The Header Syntax. typedefs. #defines. Function Prototypes. Sample Code. A Application. The Application. 21. The Standard C++ Header. The Header Syntax. Function Prototypes and Macro Definitions. Sample Code. An Error-Testing Application. A File Read/Write Application. 22. The Standard C++ Header. The Header Syntax. The Function Prototypes. Sample Code. Using the localtime() and asctime() Functions. Using the asctime() and gmtime() Functions. Using the strftime() Function. Using the ctime() Function. Building a Time Delay Routine. 23. The and Standard C++ Header. The Header Syntax. Interesting Structures and Constants. Function Prototypes. POSIX Function Prototypes and More. The Header Syntax. Sample Code. 24. The , , , , , , and Standard C++ Headers. The Header Syntax. basic_filebuf. basic_ifstream. basic_ofstream. basic_fstream. The Header Syntax. The Header Syntax. basic_istream. basic_iostream. The Header Syntax. basic_ostream. The Header Syntax. basic_stringbuf. basic_istringstream. basic_ostringstream. basic_stringstream. The Header Syntax. basic_streambuf. The Header Syntax. Sample Code. The Insertion Operator. The Flush Manipulator. Using . 25. The and Standard C++ Headers. The Header Syntax. ios_base. basic_ios. fpos. Manipulators. The Header Syntax. char_traits. basic_ios. istreambuf_iterator. ostreambuf_iterator. basic_streambuf, basic_istream, basic_ostream, basic_iostream, basic_stringbuf, basic_istringstream, basic_ostringstream, basic_stringstream, basic_filebuf, basic_ifstream, basic_ofstream, and basic_fstream. Sample Code. 26. The Standard C++ Header. The Header Syntax. valarray. slice_array. gslice_array. mask_array. indirect_array. Sample Code. The maskarray.cpp Application. The addvalarray.cpp Application. The indirectarray.cpp Application. 27. The , , , and Standard C++ Headers. The Header Syntax. The Header Syntax. The Header Syntax. The Header Syntax. Sample Code. Index.show more

About William H. Murray

William H. Murray is Chair of the Computer Science Department at the B.C.C. campus of the State University of New York, Binghamton. Chris H. Pappas is a Professor of Computer Science at the B.C.C. campus of the State University of New York, Binghamton.show more

Rating details

1 ratings
2 out of 5 stars
5 0% (0)
4 0% (0)
3 0% (0)
2 100% (1)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X