Skip to content

Document casting iterators / ranges #8421

@hageboeck

Description

@hageboeck

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions