A Deeper Look at Metafunctions
This article investigates the use of metafunctions in template metaprogramming, and introduces the Boost Metaprogramming Library. It is an excerpt from the book, C++ Template Metap…
An Improved Variant Type Based on Member Templates
This article presents the class variant_t, which encapsulates a mechanism to hold values of arbitrary types.
Befriending Templates
Looks at why befriending a template in another namespace is easier said (in the standard) than done (using real-world compilers that don't quite get the Standard right).
C++ Templates FAQ
Covers advanced template topics and compiler specific issues.
C++ Templates: Metaprograms
Nicolai M. Josuttis and David Vandevoorde examine metaprogramming, or "programming a program." Learn how to lay out code that the programming system executes to generate new code t…
Multiple Dispatch: A New Approach Using Templates and RTTI
This article focuses on two new techniques based on templates and Run Time Type Identification (RTTI).
Partial Template Implementation
Describes partial template specialization and partial ordering of function templates.
Policy-Based Class Design in C++
Describes policies and policy classes, important class design techniques that enable the creation of flexible, highly reusable libraries.
Template Argument Matching
Takes a look at template argument matching and shows two limitation of Microsoft's compiler in this regard.
Templates and Inheritance Interacting in C++
Discover the interesting ways that templates and inheritance interact by taking a close look at named template arguments, the Empty Base Class Optimization (EBCO), the Curiously Re…
Templates for Efficient Dynamic Type Checking
Ivan J. Johnson's template that makes it easy to check casts without losing performance
Typed Buffers, Part 1
This article treats memory buffers in C++, but with two twists: first, the buffers are generic, which means they can contain typed data. Second, the buffers are as efficient as the…
Typed Buffers, Part 2
This article does not treat buffers directly, but rather two operations that are commonly performed with buffers: filling a buffer with a value and copying between buffers and vari…
Typedef Templates
Describes an extension to the C++ standard: typedef templates. Also shows workarounds for current C++ compilers.
Using Template Functions to Customize Library Behavior
Looks at function templates and how they can be used to provide hooks for customizing behavior.
Showing 20–15 of 15 results