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 that implements the functionality you really want. (January 24, 2003)
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). (January, 2003)
"Export" Restrictions, Part 2
Takes a look at the current state of export and offers some advice on using export effectively. (November, 2002)
"Export" Restrictions, Part 1
Explains what export is, and how it's intended to be used. Also looks at the problems export is widely assumed to address, and why it does not in fact address them the way most people think. (September, 2002)
Partial Template Implementation
Describes partial template specialization and partial ordering of function templates. (July 9, 2002)
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 various containers. (October, 2001)
Introduction to C++ Templates
C++ templates are a powerful mechanism for code reuse, as they enable the programmer to write code that behaves the same for data of any type. [PDF] (August 16, 2001)
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 their hosted type and the host operating system allows, in every aspect. (August, 2001)
Policy-Based Class Design in C++
Describes policies and policy classes, important class design techniques that enable the creation of flexible, highly reusable libraries. (July 6, 2001)
Using Template Functions to Customize Library Behavior
Looks at function templates and how they can be used to provide hooks for customizing behavior. (March, 2001)
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. (October, 2000)
Typedef Templates
Describes an extension to the C++ standard: typedef templates. Also shows workarounds for current C++ compilers. (August 3, 2000)
Template Argument Matching
Takes a look at template argument matching and shows two limitation of Microsoft's compiler in this regard. (May 4, 2000)
Template Metaprogramming
With template metaprogramming the compiler acts as a virtual computer, emitting code optimized for a specific purpose or environment. (October 28, 1999)
Partial Template Specialization and "operator->*"
Scott Meyers shows how to make smart pointers as behaviorally compatible with built-in pointers as possible by supporting operator->*. (October, 1999)
Results: Previous 1 2 3 4 5