Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2004-03-30 12:39:58


Pavel Vozenilek ha escrito:

> "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.
>

You're right. I meant optional<iterator>.

Best,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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