2.2.7.9.1 oset::Contains

Contents

Description

Check whether a value is in the set

Syntax

BOOL Contains( _TemplType val )

Parameters

val
[input] The element to be checked if in the set

Return

Returns TRUE if val is found in the set, otherwise FALSE.


Examples

EX1

void set_Contains_ex()
{
	oset<string> s1;
	s1.Insert("hello");
	s1.Insert("Hello");
	s1.Insert("world");
	if (s1.Contains("Hello"))
		out_str("Hello exists.");
}

Remark

See Also

Header to Included