Boost logo

Boost Users :

Subject: Re: [Boost-users] Overloading boost::for_each()
From: Eric Niebler (eric_at_[hidden])
Date: 2010-08-29 14:24:11

On 8/29/2010 1:03 PM, Jeremiah Willcock wrote:
> I think just overloading for_each() and writing algorithms in terms of
> that when possible would get the same benefits, though.

This way lies madness. The separation of containers and algorithms in
the STL is what keeps it manageable. You don't want to implement N
algorithms over M container types. You want to define a concept on which
you can "overload" for_each.

Eric Niebler
BoostPro Computing

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at