#include "cetlib/registry_via_id.h"
#include "cetlib_except/exception.h"
#include <cstdlib>
#include <string>
#include <vector>
Go to the source code of this file.
void ensure |
( |
int |
which, |
|
|
bool |
claim |
|
) |
| |
Definition at line 39 of file registry_via_id_test.cc.
71 ensure(22, e.category() ==
"cet::registry_via_id");
73 ensure(23, s.find(
"not found in registry") != std::string::npos);
82 std::vector<reg::mapped_type> v{64, 81, 100};
std::map< K const, V > collection_type
static collection_type const & get() noexcept
void ensure(int which, bool claim)
static detail::must_have_id< K, V >::type put(V const &value)
cet::registry_via_id< success_t, val > reg
cet::coded_exception< error, detail::translate > exception