Commit 7a8af5ef 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 HitManagem...
parent 76a0a3f6
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment