2 #ifndef MCWIRECOLLECTION_H 3 #define MCWIRECOLLECTION_H 40 bool sort = (!
empty() && wire < (*rbegin()));
42 std::vector<sim::MCWire>::push_back(wire);
56 return (*lhs) < (*rhs);
void push_back(const MCWire &wire)
wrapper for push_back
unsigned int Channel() const
Getter for channel number.
MCWireCollection(const unsigned int ch=sim::kINVALID_UINT)
Default ctor.
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
bool operator<(const MCWireCollection &rhs) const
For sorting.
const unsigned int kINVALID_UINT
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
bool operator()(const sim::MCWireCollection *lhs, const sim::MCWireCollection *rhs)
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.