View Template Library


KeyDataPair

Category: Adaptors

Component type: type

Description

KeyDataPair is an empty class: it has no member functions, member variables, or nested types. It is used solely as a "tag": a concept within the C++ type system. Specifically, it is used as argument to a container template to determin whether the container has a value type of pair or not. Its existence allows us to specialize the container_traits<> class to generate the appropriate typedefs for the match_element functor.

Example

Template <class K,class D, class C, class A> class ContainerTrait <map<K,D,C,A> >
{
typedef KeyDataPair ValuePairType;
};

Definition

Defined in stl_traits.hpp.

Template parameters

None.

Model of

Assignable

Type requirements

None.

Public base classes

None.

Members

None.

New Members

None.

Notes

See also

NoKeyDataPair



VTL Home
Copyright © 1999 Konrad-Zuse-Zentrum für Informationstechnik Berlin & Gary Powell All Rights Reserved.