-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Document casting iterators / ranges #8421
Copy link
Copy link
Closed
Labels
1st Hackathon: the FixhathonThis issue can be tackled at a ROOT fixathonThis issue can be tackled at a ROOT fixathonimprovementin:Documentation
Milestone
Description
Explain what you would like to see improved
TCollection and derived classes should advertise the casting iterators, e.g. here.
TIterator might also be improved with a small reference / code example.
Maybe one could even convert a few tutorials.
Additional context
From Town Square:
A: Could devs remind me of the name of a class intended to be used in range for loops for casting plz? Smth like:
for (auto o : TheCastingClass<TH1*>(collection_of_pointers_to_TObject)) {
if (!o) continue;
// ...
}
B: TRangeStaticCast ?
A: TRangeDynCast actually
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
1st Hackathon: the FixhathonThis issue can be tackled at a ROOT fixathonThis issue can be tackled at a ROOT fixathonimprovementin:Documentation
Type
Projects
Status
Done