Item 38. Typedef

I l @ ve RuBoard

Item 38. Typedef

Difficulty: 3

Why use typedef ? Besides the many traditional reasons, we'll consider typedef techniques that make using the C++ standard library safer and easier.

  1. Why use typedef? Name as many situations/reasons as you can.

  2. Why is typedef such a good idea in code that uses standard (STL) containers?

I l @ ve RuBoard


More Exceptional C++
More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions
ISBN: 020170434X
EAN: 2147483647
Year: 2001
Pages: 118
Authors: Herb Sutter

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net