예제 #1
0
CMap<std::string>	CAttributeRange::GetAttributesWithoutInternal() const
{
	CMap<std::string>	filteredAttrs;
	for( auto currElem : mAttributes )
	{
		if( currElem.first[0] != '$' )
			filteredAttrs.insert( currElem );
	}
	return filteredAttrs;
}
예제 #2
0
int main()
{
    CMap<string, int> grades;
    grades.insert("Jones", 88);
    grades.insert("Smith", 90);
    grades.get(0);
    cout << endl;
    grades.get(1);

    cout << endl;
    return 0;
}