1 #ifndef cetlib_registry_h 2 #define cetlib_registry_h 10 #include "cetlib_except/exception.h" 16 template <
class K,
class V>
22 template <
class K,
class V>
30 typedef std::map<K const, V>
reg_t;
41 static typename reg_t::size_type
60 static V
const&
get(
K const&
key);
61 static bool get(
K const&
key, V&
value)
throw();
68 static reg_t the_registry;
76 template <
class K,
class V>
83 template <
class K,
class V>
90 <<
"Key \"" << key <<
"\" not found in registry";
94 template <
class K,
class V>
static void put(K const &key, V const &value)
static reg_t & the_registry_()
std::map< K const, V > reg_t
static reg_t::size_type size()
void operator=(registry const &)=delete
static const_iterator begin()
static const_iterator end()
static V const & get(K const &key)
reg_t::const_iterator iter_t
cet::coded_exception< error, detail::translate > exception