|
Boost : |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-01-03 09:42:13
The common idiom is:
for (; i != boost::end (vector); ++i) ...
The compiler had damn well better realize that boost::end is a constant
function that can be lifted from the loop, or performance can be severely
impacted.
Does anyone have any experience with this? Is there a portable way to give
hints to the compiler? Should boost provide such a facility?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk