Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-07-08 18:39:41


Dave Abrahams wrote:

> I think there are some strangenesses with value_type which need to be teased
> out for various associative containers.
>
> For example, *begin() is of type value_type for most containers, but I think
> there might be an extra const for associative containers.

I think that's correct. In order to find the real type returned
by the iterator, I would use iterator_trait rather than
container::value_type.

> You might want some way to get the key part of the value_type generically
> for associative containers.

That's whay key_type is all about ! (Or I am missing something ?)

-- 
Valentin Bonnard
------------------------------------------------------------------------
eGroups.com home: http://www.egroups.com/group/boost
http://www.egroups.com - Simplifying group communications

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