
9 Apr
2011
9 Apr
'11
3:36 p.m.
AMDG On 04/08/2011 11:46 PM, John Funnell wrote:
Boost's any_range documentation says the following:
"Despite the underlying any_iterator being the fastest available implementation, the performance overhead of any_range is still appreciable due to the cost of virtual function calls required to implement increment, decrement, advance, equal etc. Frequently a better design choice is to convert to a canonical form."
What does the author mean by a "canonical form"? Can someone give an example?
For example, copying the range into a vector. In Christ, Steven Watanabe