Merge pull request #12 from jxd134/master
a small modify in _uninitialized_fill_aux function
This commit is contained in:
@@ -58,8 +58,7 @@ namespace TinySTL{
|
|||||||
template<class ForwardIterator, class T>
|
template<class ForwardIterator, class T>
|
||||||
void _uninitialized_fill_aux(ForwardIterator first, ForwardIterator last,
|
void _uninitialized_fill_aux(ForwardIterator first, ForwardIterator last,
|
||||||
const T& value, _false_type){
|
const T& value, _false_type){
|
||||||
int i = 0;
|
for (; first != last; ++first){
|
||||||
for (; first != last; ++first, ++i){
|
|
||||||
construct(first, value);
|
construct(first, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user