void doSomething( unsigned )
{
}
void test( const size_t ac_nTestSize )
{
std::vector< unsigned > x( ac_nTestSize );
std::vector< unsigned > y( ac_nTestSize );
time::QueryPerformanceTimer tim;
tim.mp_Start();
std::vector< unsigned >::const_iterator cit;
for( cit = x.begin() ; cit < x.end() ; cit++ )
doSomething( *cit );
s_dbgpf( "post-inc took: %.3f", tim.mf_dElapsedMilliSeconds() );
tim.mp_Start();
std::vector< unsigned >::const_iterator cit2;
const std::vector< unsigned >::const_iterator citEnd( y.end() );
for( cit2 = y.begin() ; cit2 < citEnd ; ++cit2 )
doSomething( *cit2 );
s_dbgpf( "pre-inc took: %.3f", tim.mf_dElapsedMilliSeconds() );
}