Skip to content

Commit 1bd8321

Browse files
use std::fill in VectorWithOffset::fill
1 parent 0f29d1e commit 1bd8321

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/include/stir/VectorWithOffset.inl

+1-4
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,7 @@ void
567567
VectorWithOffset<T>::fill(const T& n)
568568
{
569569
this->check_state();
570-
// TODO use std::fill() if we can use namespaces (to avoid name conflicts)
571-
// std::fill(begin(), end(), n);
572-
for (int i = this->get_min_index(); i <= this->get_max_index(); i++)
573-
num[i] = n;
570+
std::fill(this->begin(), this->end(), n);
574571
this->check_state();
575572
}
576573

0 commit comments

Comments
 (0)