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

> 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
------------------------------------------------------------------------ home: - Simplifying group communications

Boost list run by bdawes at, gregod at, cpdaniel at, john at