[STLExtras] Allow for non-member `begin`/`end` in `append_range`
authorJakub Kuderski <kubak@google.com>
Tue, 21 Feb 2023 18:23:17 +0000 (13:23 -0500)
committerJakub Kuderski <kubak@google.com>
Tue, 21 Feb 2023 18:35:19 +0000 (13:35 -0500)
commit93a971ccf8a4576da284648ff1e7cbb247e5c887
treebbdc4f3348af87fde54f6b360babdc99a8bea207
parent25dbf8f3c66b625973f12ba81b99f8e797ab4e76
[STLExtras] Allow for non-member `begin`/`end` in `append_range`

This makes `append_range` useable with, C arrays and types with custom
`begin`/`end` functions.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D144420
llvm/include/llvm/ADT/STLExtras.h
llvm/unittests/ADT/STLExtrasTest.cpp