Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-03-30 11:47:59


"JOAQUIN LOPEZ MU?Z" <joaquin_at_[hidden]> wrote

> std::set<int> s;
> ...
> boost::optional<int> oi=s.insert(10);
> // oi is initialized iff insertion took place.
>
set::insert returns pair of iterator + bool.

/Pavel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk