vectorbase::GetSize

Description

Get the size of a vector.

Syntax

int GetSize( )const

Parameters

Return

Returns the size of the vectorbase derived object.

Examples

EX1

void vectorbase_GetSize_ex1()
{
    // Declare a vector object of a particular size
    vector vec(99);

    // Get size and report
    printf("Size of vector is: %d\n", vec.GetSize());
}

Remark

Get the size of (number of elements in) a vectorbase derived object.

See Also

vectorbase::SetSize, vectorbase::GetUpperBound

header to Include

origin.h