Skip to content

Instantly share code, notes, and snippets.

@secretrobotron
Created November 16, 2010 21:11
Show Gist options
  • Save secretrobotron/702519 to your computer and use it in GitHub Desktop.
Save secretrobotron/702519 to your computer and use it in GitHub Desktop.
CBaseDatorPtr* CConfigurator::Get(std::string const& key) {
CBaseDatorPtr* ptr = NULL;
std::map<std::string, CBaseDatorPtr>::iterator i = configuration_.find(key);
//just use the first one for now (if it exists at all)
if (i != configuration_.end()) ptr = &(i->second);
return ptr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment