vectorbase::RemoveAll

Description

Removes all elements in the vector.

Syntax

void RemoveAll( )

Parameters

Return

Examples

EX1

void vectorbase_RemoveAll_ex1()
{
    vector<int> vnData = {1,2,3};
    vnData.RemoveAll();
    if(0 == vnData.GetSize())
        out_str("Remove successed.");
        else
                out_str("Remove failed.");
}

Remark

See Also

header to Include

origin.h