Skip to content

Commit

Permalink
clearer empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Sep 12, 2023
1 parent d3c0612 commit f3bd210
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class SiStripApproximateClusterCollection {
void reserve(std::size_t dets, std::size_t clusters);
Filler beginDet(unsigned int detId);

const_iterator begin() const { return const_iterator(clusters_.empty() ? nullptr : this); }
const_iterator begin() const { return clusters_.empty() ? end() : const_iterator(this); }
const_iterator cbegin() const { return begin(); }
const_iterator end() const { return const_iterator(); }
const_iterator cend() const { return end(); }
Expand Down

0 comments on commit f3bd210

Please sign in to comment.