5 #include <boost/range/adaptor/map.hpp>
6 #include <boost/range/algorithm/copy.hpp>
20 typename C::mapped_type
21 getargs(
const std::string& kind,
const C& map,
const std::string& key)
23 auto i = map.find(key);
29 std::ostream_iterator<std::string>(o,
" "));
30 raise(
"invalid ", kind,
": ", key,
", expected: ", o.str());
C::mapped_type getargs(const std::string &kind, const C &map, const std::string &key)
Find a correspondance in a map.
AutOut copy(const AutIn &input, KeepState keep_state, KeepTrans keep_trans)
A copy of input keeping only its states that are accepted by keep_state.