Skip to content
Snippets Groups Projects
Commit 92ce9cc8 authored by Elmar Ritsch's avatar Elmar Ritsch Committed by Graeme Stewart
Browse files

Change parameter of AtlasHitsVector::Insert(..) from const r-value reference...

Change parameter of AtlasHitsVector::Insert(..) from const r-value reference to non-const r-value reference, as there isn't really any good reason for using const r-value references ever. ATLASSIM-2775. Make AtlasHitsVector::getVector(..) a const method, as it does not modify member data. (HitManagement-00-01-25)

2016-05-10  Elmar Ritsch  <Elmar.Ritsch@cern.ch>

	* Tagging HitManagement-00-01-25
	* Change parameter of AtlasHitsVector::Insert(..) from const r-value
	reference to non-const r-value reference, as there isn't really any
	good reason for using const r-value references ever. ATLASSIM-2775
	* Make AtlasHitsVector::getVector(..) a const method, as it does not
	modify member data.

2016-05-03  Elmar Ritsch  <Elmar.Ritsch@cern.ch>

	* Tagging HitManagement-00-01-24
	* Add perfect forwarding of universal references in
	AtlasHitsVector::Insert(..) and AtlasHitsVector::Emplace(..) methods. ATLASSIM-2775

2016-03-24 Iain Bertram <iabertra@cern.ch>
	* Change to use std::stable_sort
	* Modified HitManagement/TimedHitCollection.icc and HitManagement/TimedHitPtrCollection.icc
	* Tagging HitManagement-00-01-23


Former-commit-id: c6eeb6d5832bf921e01f5fadef3550d2eed89393
parent 0d5a1cdf
No related merge requests found
......@@ -59,7 +59,7 @@ TimedHitCollection<HIT>::nextDetectorElement(const_iterator& b, const_iterator&
template <class HIT>
void
TimedHitCollection<HIT>::sortVector() const {
std::sort(m_hits.begin(), m_hits.end());
std::stable_sort(m_hits.begin(), m_hits.end());
m_currentHit = m_hits.begin();
m_sorted=true;
}
......
......@@ -47,7 +47,7 @@ TimedHitPtrCollection<HIT>::nextDetectorElement(const_iterator& b, const_iterato
template <class HIT>
void
TimedHitPtrCollection<HIT>::sortVector() const {
std::sort(m_hits.begin(), m_hits.end());
std::stable_sort(m_hits.begin(), m_hits.end());
m_currentHit = m_hits.begin();
m_sorted=true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment