[STLExtras] Add append_range helper.
authorSean Silva <silvasean@google.com>
Fri, 6 Nov 2020 00:00:38 +0000 (16:00 -0800)
committerSean Silva <silvasean@google.com>
Fri, 6 Nov 2020 00:20:02 +0000 (16:20 -0800)
commite9e2e3107d6b4fb1bfdd877a83f1e214fcefea76
tree017dc1ab07a7b303807b4acb539df3ffc3f0f0d8
parent741b04b0b7912611a8a5b7e74462e87b8930a116
[STLExtras] Add append_range helper.

This is convenient in a lot of cases, such as when the thing you want
to append is `someReallyLongFunctionName()` that you'd rather not
write twice or assign to a variable for the paired begin/end calls.

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