llvm-project
d6160137 - [ADT] Make ilist_select_iterator_type a type alias (NFC) (#160446)

Commit
44 days ago
[ADT] Make ilist_select_iterator_type a type alias (NFC) (#160446) Without this patch, we have: template <bool use_iterator_bits, typename Opts, bool arg1, bool arg2> struct ilist_select_iterator_type { using type = ...; } This means that we must reference "type" with somewhat mouthful: typename ilist_select_iterator_type<...>::type This patch simplifies the reference by making ilist_select_iterator_type a type alias. Now, we always obtain "bool use_iterator_bit" from OptionsT::has_iterator_bits, so this patch folds the logic into the type alias.
Parents
Loading