12.11. Summary

This chapter should have given you a glimpse of how generics can be created and consumed by C++. The examples included here were not intended to be comprehensive. Instead, the chapter attempted to provide a broad overview of all the generic constructs and point out areas where C++ might vary in its syntax and underlying implementation. You also saw some examples of how generics and templates can be combined in a way that would allow other managed languages to interact with templates. Overall, you should find the managed generic syntax of C++ to be fairly easy to write and digest. In fact, the managed evolution of C++ combined with its raw performance makes it a compelling alternative to both VB and C#.

Get Professional .NET 2.0 Generics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.