Opened 13 years ago
Closed 13 years ago
#607 closed request (fixed)
convenience function to get value from a const map&
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | major | Milestone: | yat 0.7 |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
I would like a function with interface
template<typename K, typename V> const V& get(const map<K,V>&, const K&)
if K exists in map it behaves just like map::operator[] and else thow exception.
Change History (2)
comment:1 Changed 13 years ago by
Milestone: | yat 0.x+ → yat 0.7 |
---|---|
Owner: | changed from Jari Häkkinen to Peter |
Status: | new → assigned |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [2181]) fixes #607