[all-commits] [llvm/llvm-project] 990923: [ADT][NFC] Add extra typedefs to `ArrayRef` and `M...

Vladislav Vinogradov via All-commits all-commits at lists.llvm.org
Fri Feb 26 07:37:12 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9909237d992000d651b32212d15111453485a6b0
      https://github.com/llvm/llvm-project/commit/9909237d992000d651b32212d15111453485a6b0
  Author: Vladislav Vinogradov <vlad.vinogradov at intel.com>
  Date:   2021-02-26 (Fri, 26 Feb 2021)

  Changed paths:
    M llvm/include/llvm/ADT/ArrayRef.h

  Log Message:
  -----------
  [ADT][NFC] Add extra typedefs to `ArrayRef` and `MutableArrayRef`

* `value_type`
* `pointer`
* `const_pointer`
* `reference`
* `const_reference`
* `const_reverse_iterator`
* `size_type`
* `difference_type`

It makes `ArrayRef` and `MutableArrayRef` types fully compliant with STL Container concept.

Reviewed By: lattner, courbet

Differential Revision: https://reviews.llvm.org/D95611




More information about the All-commits mailing list