View Template Library


PairInternalEqualRange

Category: Adaptors

Component type: type

Description

PairInternalEqualRange 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 memeber find function or not. Its existence allows us to specialize the container_traits<> class to generate the appropriate typedefs for the match_element functor. It inherits from NoInternalFindElement because the member function find would find the key not the data.

Example

Template <class K, class D, class H, class A> class ContainerTrait <map<K,D,H,A> >
{
typedef PairInternalEqualRange FindType;
};

Definition

Defined in stl_traits.hpp.

Template parameters

None.

Model of

Assignable

Type requirements

None.

Public base classes

NoInteralFindElement

Members

None.

New Members

None.

Notes

See also

InternalFindElement



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