1 #ifndef DataFormats_Common_DetSet_h
2 #define DataFormats_Common_DetSet_h
30 typedef typename collection_type::iterator
iterator;
39 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
42 DetSet<T>& operator=(DetSet<T>
const& rh) {
50 DetSet<T>& operator=(DetSet<T>&& rh) noexcept {
67 template <
class... Args>
69 return data.emplace_back(std::forward<Args>(args)...);
90 return x.detId() < y.detId();
99 inline bool operator<(det_id_type x, DetSet<T>
const& y) {
100 return x < y.detId();
105 data.swap(other.data);
std::vector< T > collection_type
void push_back(const T &t)
collection_type::iterator iterator
det_id_type detId() const
const_iterator begin() const
reference operator[](size_type i)
#define CMS_CLASS_VERSION(_version_)
DetSet(det_id_type i)
constructor by detector identifier
Container::value_type value_type
decltype(auto) emplace_back(Args &&...args)
collection_type::value_type value_type
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
collection_type::reference reference
const_iterator end() const
DetSet()
default constructor
void swap(DetSet< T > &other) noexcept
const_reference operator[](size_type i) const
collection_type::size_type size_type
collection_type::const_reference const_reference
collection_type::const_iterator const_iterator