Skip to content

Commit

Permalink
add as_vector method to edm::EDCollection<T> class template
Browse files Browse the repository at this point in the history
Suggested by @fwyzard in
#42662 (comment)
  • Loading branch information
missirol committed Aug 25, 2023
1 parent e776e05 commit 9002a11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DataFormats/Common/interface/EDCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace edm {
T const& at(size_type i) const;
const_iterator begin() const;
const_iterator end() const;
std::vector<T> const& as_vector() const { return obj; }

private:
std::vector<T> obj;
Expand Down

0 comments on commit 9002a11

Please sign in to comment.