Re: One for the STL gurus...

2002-07-22 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | How seriously do we take Scott Meyer's recommendation "Prefer algorithm calls | to hand-written loops"? (Item 43 of Effective STL) > | For example, these two functions have identical functionality. Which one is | prefereable? (and yes, I chose a delib

Re: One for the STL gurus...

2002-07-15 Thread Angus Leeming
On Monday 15 July 2002 3:36 pm, Andre Poenitz wrote: > To the extend where the "algorithm solution" does neither create carpal > symdrome when writing a sore wrist! > nor headaches when reading? > I'd personally use the hand-written loop unless the function object gets > reused in two or three

Re: One for the STL gurus...

2002-07-15 Thread Andre Poenitz
On Mon, Jul 15, 2002 at 01:43:03PM +0100, Angus Leeming wrote: > How seriously do we take Scott Meyer's recommendation "Prefer algorithm calls > to hand-written loops"? (Item 43 of Effective STL) To the extend where the "algorithm solution" does neither create carpal symdrome when writing nor he

One for the STL gurus...

2002-07-15 Thread Angus Leeming
How seriously do we take Scott Meyer's recommendation "Prefer algorithm calls to hand-written loops"? (Item 43 of Effective STL) For example, these two functions have identical functionality. Which one is prefereable? (and yes, I chose a deliberately simple example...) Angus void func1(Buffer