Boost logo

Boost Users :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2006-04-18 17:44:49


Irek Szczesniak wrote:
> In nutshell: how can I check whether a property map has some given
> key?
>
One way which may work for you is to use optional<value> as the actual
value_type of the map.
That way, your map can just return an absent optional if there is no value
associated with a key.

http://www.boost.org/libs/optional/doc/optional.html

-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com/ 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net