2.2.7.9.3 oset::GetAsVector

Contents

Description

Get the values of entire set and assign them to a vector.

Syntax

BOOL GetAsVector( vector<_TemplType> & v )

Parameters

V
[output] Vector used to get the set values

Return

Returns TRUE indicating success, else return FALSE


Examples

EX1

void set_GetAsVector_ex()
{
	oset<string> s1;
	s1.Insert("hello");
	s1.Insert("Hello");
	s1.Insert("world");
	
	vector<string> vs;
	s1.GetAsVector(vs);
}

Remark

See Also

Header to Included