Concept

CombinationElement

Definition

A CombinationElement can be used as template parameter for the class Combination_enumerator<CombinationElement>.

Creation

CombinationElement e ( e2);
Copy constructor.

Operations

void ++ e Incrementation of e.

void -- e Decrementation of e.

bool e < e2 Total order comparison.

bool e == e2 Equality test.

CombinationElement e + int i Equivalent to calling ++e  i times if i is positive. Equivalent to calling --e  (-i) times if i is negative.

int e - e2 Compute the difference d between e2 and e so that e2+d==e.

Has Models

Any integer type (char, short, int, long, etc.)

Pointers

Random access iterators

See Also

Combination_enumerator<CombinationElement>