BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf_enumeratedtesttype

Detailed Description

Outline

Purpose

Provide an enumerated test type.

Classes

See also
bsltf_templatetestfacility

Description

This component provides an enumeration type, EnumeratedTestType, to facilitate the testing of templates.

Usage

This section illustrates intended use of this component.

Example 1: Using The Enumeration

First, we create an EnumeratedTestType::Enum value and initialize it to the first possible value:

EnumeratedTestType::Enum first = EnumeratedTestType::FIRST;
assert(static_cast<int>(first) == 0);

Finally, we create an EnumeratedTestType::Enum value and initialize it to the last possible value:

EnumeratedTestType::Enum last = EnumeratedTestType::LAST;
assert(static_cast<int>(last) == 127);