pair class : Fitted getter

Description

Gets a value that indicates whether it has been initialized.

Syntax

pairInstance.Fitted

Arguments

None

Return value

ClassDescription
boolWhether it has been initialized.

Sample code

1:

pair newPair;

2:

bool init = newPair.Fitted; // false

3:

newPair = new pair();

4:

init = newPair.Fitted; // false

5:

newPair = new pair(150, true);

6:

init = newPair.Fitted; // true

Notes

An instance created by declaration is uninitialized.

Returns true if the first and second instances are set. Otherwise, it returns false.

Links for reference

None

Copyright © Rice All rights reserved.