Skip to content

Commit

Permalink
StArray: Expose object type observed by the container
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Nov 5, 2022
1 parent 88d9879 commit 6cccf09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions StRoot/St_base/StArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ public: \
StPtrVec ## QWERTY(Int_t sz=0):StRefArray(sz){};\
StPtrVec ## QWERTY(const StPtrVec ## QWERTY &from):StRefArray(from){};\
virtual ~StPtrVec ## QWERTY(){};\
\
using value_type = St ## QWERTY *;\
\
St ## QWERTY * const &at(Int_t idx) const {return (St ## QWERTY * const &)fV[idx];}\
St ## QWERTY * &at(Int_t idx) {return (St ## QWERTY * &)fV[idx];}\
Expand Down Expand Up @@ -208,6 +210,8 @@ class StSPtrVec ## QWERTY : public StStrArray \
public: \
StSPtrVec ## QWERTY(Int_t sz=0):StStrArray(sz){};\
StSPtrVec ## QWERTY(const StSPtrVec ## QWERTY &from):StStrArray(from){};\
\
using value_type = St ## QWERTY *;\
\
St ## QWERTY * const &at(Int_t idx) const {return (St ## QWERTY * const &)fV[idx];}\
St ## QWERTY * &at(Int_t idx) {return (St ## QWERTY * &)fV[idx];}\
Expand Down

0 comments on commit 6cccf09

Please sign in to comment.