[PATCH] D25100: Add STLExtras apply_tuple

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 09:22:29 PDT 2016


zturner created this revision.
zturner added reviewers: mehdi_amini, dblaikie.
zturner added a subscriber: llvm-commits.

This is based on the C++17 `std::apply`.  Given a tuple `std::tuple<Ts...> Tup` and a Callbable `F`, this function invokes `F(Ts...)` and returns the result.


https://reviews.llvm.org/D25100

Files:
  include/llvm/ADT/STLExtras.h
  unittests/ADT/STLExtrasTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25100.73066.patch
Type: text/x-patch
Size: 3649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/247c4f2d/attachment.bin>


More information about the llvm-commits mailing list