Use std::move to move samples in buffer.

Yes, std::rotate works, but it's fancy and does unnecessary work.
This commit is contained in:
Jared Boone 2015-10-14 17:23:03 -07:00
parent 4141d6fe0f
commit ab28639a3d

View File

@ -40,7 +40,7 @@ bool MatchedFilter::execute_once(
}
void MatchedFilter::shift_by_decimation_factor() {
std::rotate(&samples_[0], &samples_[decimation_factor], &samples_[taps_count_]);
std::move(&samples_[decimation_factor], &samples_[taps_count_], &samples_[0]);
}
} /* namespace matched_filter */