Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-01-09 07:58:28


>Does this have any effect? What's the runtime cost of calling a trivial
destructor? As far as I know, it's free.<

On its own yes it is, but what if you have a lot of them and have to
enumerate them and call the destructor on each item - its harder for the
compiler to optimise out the loop in this case, although I accept some
compilers may do this.

- John.

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