Menu

#14 FieldMap::getFieldIfSet

open
nobody
None
5
2010-08-10
2010-08-10
Alex
No

This function saves a lot of code:

in class FieldMap (public method):

bool getFieldIfSet( FieldBase& field ) const
{
Fields::const_iterator iter = m_fields.find( field.getField() );
if ( iter == m_fields.end() )
return false;
field = iter->second;
return true;
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.