[ADT] Add STLForwardCompat.h and llvm::disjunction
authorScott Linder <Scott.Linder@amd.com>
Fri, 30 Apr 2021 17:15:49 +0000 (17:15 +0000)
committerScott Linder <Scott.Linder@amd.com>
Fri, 30 Apr 2021 17:28:47 +0000 (17:28 +0000)
commitc6f20d70a8c93ab3d50c9777c477fe040460a664
treeac252d11d5353a377ffe4e38a606441c9aca83ee
parentcab19d84ce85cbceec7fde515cc686d6a83a5f9d
[ADT] Add STLForwardCompat.h and llvm::disjunction

Move some types in STLExtras.h which are named and behave identically to
STL types from future standards into a dedicated header. This keeps them
organized (they are not "extras" in the same sense as most types in
STLExtras.h are) and fixes circular dependencies in future patches.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D100668
llvm/include/llvm/ADT/STLExtras.h
llvm/include/llvm/ADT/STLForwardCompat.h [new file with mode: 0644]
llvm/unittests/ADT/CMakeLists.txt
llvm/unittests/ADT/STLForwardCompatTest.cpp [new file with mode: 0644]