Also added ImmutableList<T>::iterator::operator->.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D51881
[ADT] Made numerous methods of ImmutableList const ClosedPublic Authored by Szelethus on Sep 10 2018, 12:29 PM.
Details Summary Also added ImmutableList<T>::iterator::operator->.
Diff Detail Event Timelinevsk added inline comments. This revision is now accepted and ready to land.Sep 11 2018, 10:14 AM Closed by commit rL342045: [ADT] Made numerous methods of ImmutableList const (authored by Szelethus). · Explain WhySep 12 2018, 4:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 164826 include/llvm/ADT/ImmutableList.h
unittests/ADT/ImmutableListTest.cpp
|
It might be simpler to use a shorter name here (maybe 'Unmodifiable'?) and to have a comment explaining that the struct has no move/copy constructors/assignment operators.