Merge pull request #12 from jxd134/master

a small modify in _uninitialized_fill_aux function
This commit is contained in:
zouxiaohang
2016-03-14 13:59:25 +08:00

View File

@@ -58,8 +58,7 @@ namespace TinySTL{
template<class ForwardIterator, class T>
void _uninitialized_fill_aux(ForwardIterator first, ForwardIterator last,
const T& value, _false_type){
int i = 0;
for (; first != last; ++first, ++i){
for (; first != last; ++first){
construct(first, value);
}
}