My Account
Templates (sometimes called generics in other programming languages) provide the ability to parametrize types and functions with types.
More information

Related categories 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.
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).
Covers advanced template topics and compiler specific issues.
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.
Description and examples about some newer C++ template features which are now broadly supported by the compilers.
This article presents the class variant_t, which encapsulates a mechanism to hold values of arbitrary types.
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]
This article focuses on two new techniques based on templates and Run Time Type Identification (RTTI).
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 Recurring Template Pattern (CRTP), and parameterized virtuality.
Presents a handy template that makes it easy to check casts without losing performance.
A new and useful template technique that radically simplifies the interface to class templates instantiable on native C++ types.
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.
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.
Looks at function templates and how they can be used to provide hooks for customizing behavior.
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 Metaprogramming by David Abrahams and Aleksey Gurtovoy. (August 23, 2004)
Covers advanced template topics and compiler specific issues.
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 Recurring Template Pattern (CRTP), and parameterized virtuality.
This article presents the class variant_t, which encapsulates a mechanism to hold values of arbitrary types.
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.
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.
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.
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.
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).
Looks at function templates and how they can be used to provide hooks for customizing behavior.
Presents a handy template that makes it easy to check casts without losing performance.
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]
A new and useful template technique that radically simplifies the interface to class templates instantiable on native C++ types.
Description and examples about some newer C++ template features which are now broadly supported by the compilers.
This article focuses on two new techniques based on templates and Run Time Type Identification (RTTI).
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 Metaprogramming by David Abrahams and Aleksey Gurtovoy. (August 23, 2004)
Last update:
July 5, 2022 at 6:15:05 UTC
Computers
Games
Health
Home
News
Recreation
Reference
Regional
Science
Shopping
Society
Sports
All Languages
Arts
Business