Logo Search packages:      
Sourcecode: performous version File versions  Download package

template<typename Base, typename Arg = std::string const&, typename Key = std::string>
static iterator plugin::registry< Base, Arg, Key >::find ( Key const &  key  )  [inline, static]

Find a specific key.

Exceptions:
plugin::invalid_key_error if the key is not found
Returns:
iterator to the option matching the key

Definition at line 143 of file plugin.hpp.

                                             {
            map_t const& m = map();
            typename map_t::const_iterator it = m.find(key);
            if (it == m.end())
              throw invalid_key_error("plugin::find: Requested key not found");
            return it;
        }


Generated by  Doxygen 1.6.0   Back to index