[PATCH] D98477: [ADT] Add IntrusiveVariant, VariantTraits, and new STLForwardCompat
Scott Linder via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 13:53:11 PST 2022
scott.linder updated this revision to Diff 398230.
scott.linder added a comment.
Implement explicit return version of llvm::visit
When the common return type of the visitor is ambiguous it is useful to be able
to specify a type to coerce the result to. This implements the equivalent
std::visit addition in C++20.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98477/new/
https://reviews.llvm.org/D98477
Files:
llvm/include/llvm/ADT/IntrusiveVariant.h
llvm/include/llvm/ADT/STLForwardCompat.h
llvm/include/llvm/ADT/VariantTraits.h
llvm/unittests/ADT/CMakeLists.txt
llvm/unittests/ADT/IntrusiveVariantTest.cpp
llvm/unittests/ADT/STLForwardCompatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98477.398230.patch
Type: text/x-patch
Size: 44221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220107/ea7aed33/attachment-0001.bin>
More information about the llvm-commits
mailing list