Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-09-23 13:51:27

Daryle Walker wrote:
> 1. Some types in Boost items involve a std::pair with both template
> parameters the same type. We could compact this somehow. Too bad we can't
> do:
> template < typename T >
> typedef std::pair<T,T> doublet;
> I guess we have to make a class template that inherits from std::pair and/or
> uses special conversions.

While it may save some typing in some circumstances, it's probably
not worth the effort. And you could partially specialize (or overload)
on std::pair<T,T> if you feel there's some optimization potential.

Jens Maurer

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