/*! Removes the option \a name from \a optSet. If the option is not present \c false is returned, \c true otherwise. \param[in] optSet OptionSet to modify. \param[in] name Name of the option. \return Whether the option was successfully removed. */ bool IOFileTypeBase::unsetOption(OptionSet &optSet, const std::string &name) { bool retVal = false; OptionSet::iterator oIt = optSet.find(name); if(oIt != optSet.end()) { optSet.erase(oIt); retVal = true; } return retVal; }