22 const std::string oid_str = oid.
to_string();
26 auto o2s = m_oid2str.find(oid_str);
28 if(o2s == m_oid2str.end()) {
29 m_oid2str.insert(std::make_pair(oid_str, str));
30 }
else if(o2s->second != str) {
31 throw Invalid_State(
"Cannot register two different names to a single OID");
34 auto s2o = m_str2oid.find(std::string(str));
36 if(s2o == m_str2oid.end()) {
37 m_str2oid.insert(std::make_pair(str, oid));