[all-commits] [llvm/llvm-project] ddbc76: [ADT] Add deduction guide for iterator_range

Balazs Benics via All-commits all-commits at lists.llvm.org
Mon Jul 3 00:30:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddbc7620d46f7bed51abc3eb80f51007e88e2732
      https://github.com/llvm/llvm-project/commit/ddbc7620d46f7bed51abc3eb80f51007e88e2732
  Author: Balazs Benics <benicsbalazs at gmail.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    A llvm/include/llvm/ADT/ADL.h
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/include/llvm/ADT/iterator_range.h

  Log Message:
  -----------
  [ADT] Add deduction guide for iterator_range

This commit also enhances the container overload constructor so that it
now considers the `begin` and `end` free functions, and performs ADL
lookups to find the best match.

To make this possible, I had to split-off the ADL helper functions from
the STLExtras header so that the iterator_range still remains pretty
cheap to include.

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




More information about the All-commits mailing list