name: Pair<class T1, class T2>

synopsis:

g++ [flags ...] file ...

#include <Pair.h>

Pair(const Pair& arg);
boolean assign(const Pair<T1, T2>& arg);
T1& first();
T1& second();
boolean clear(Integral::CMODE cmode);
quick start:

// declare a pair and insert a character and string in it
//
Pair<Char,String> pair0;
Char char(L'a');
String str(L"aye");
pair0.assign(char,str);

// use the copy constructor to create a second pair
//
Pair<Char,String> pair1(pair0);

// test the characters for equality
//
if (!pair1.first().eq(pair2.first())) {
   Console::put(L"error");
}
description:

The Pair class groups together two arbitrary objects and allows them to be operated on as a group. It is a container class that can be used to build complex objects alleviating the need to develop a new class. Classes such as Pair are extremely useful when rapid prototyping code.
dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

friend classes:

examples:

notes: