1 #ifndef _utl_MustFind_h_
2 #define _utl_MustFind_h_
5 #include <utl/AugerException.h>
12 typename Map::mapped_type&
13 MustFind(Map& map,
const typename Map::key_type& key,
const std::string& failMessage =
"key not found")
15 const typename Map::iterator it = map.find(key);
25 const typename Map::mapped_type&
26 MustFind(
const Map& map,
const typename Map::key_type& key,
const std::string& failMessage =
"key not found")
28 const typename Map::const_iterator it = map.find(key);
38 typename Map::mapped_type&
39 MustFind(Map*
const map,
const typename Map::key_type& key,
const std::string& failMessage =
"key not found")
42 const typename Map::iterator it = map->find(key);
53 const typename Map::mapped_type&
54 MustFind(
const Map*
const map,
const typename Map::key_type& key,
const std::string& failMessage =
"key not found")
57 const typename Map::const_iterator it = map->find(key);
Map::mapped_type & MustFind(Map &map, const typename Map::key_type &key, const std::string &failMessage="key not found")
Base class for exceptions trying to access non-existing components.
#define ERROR(message)
Macro for logging error messages.