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:


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 Peter

Milestone: yat 0.x+yat 0.7
Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 13 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2181]) fixes #607

Note: See TracTickets for help on using tickets.