C++相談室 part51
■ このスレッドは過去ログ倉庫に格納されています
0384デフォルトの名無しさん
2006/07/29(土) 22:49:05accumulateは
_Ty accumulate(_InIt _First, _InIt _Last, _Ty _Val)
{// return sum of _Val and all in [_First, _Last)
for (; _First != _Last; ++_First)
_Val = _Val + *_First;
return (_Val);
}
なので、380のコードはiteratorと生ポインタの比較にはなってないよ。
■ このスレッドは過去ログ倉庫に格納されています