[libcxx-commits] [PATCH] D60368: Add bind_front function (P0356R5)

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 23 10:49:11 PDT 2019


zoecarver updated this revision to Diff 196282.
zoecarver added a comment.

I updated this patch to use a more generalized perfect forwarding call struct. I modeled it after `not_fn` and got a lot of help from @EricWF. I  also updated `not_fn` to use this more generalized struct.

I added tests similar to `not_fn`'s tests to ensure perfect forwarding functions properly. I also generalized the structs used in those tests so I would not have to duplicate code. I think these tests cover the perfect forwarding implementation, but I can add more if needed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60368/new/

https://reviews.llvm.org/D60368

Files:
  include/functional
  test/std/utilities/function.objects/func.bind_front/bind_front.fail.cpp
  test/std/utilities/function.objects/func.bind_front/bind_front.pass.cpp
  test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
  test/support/callable_types.h
  www/cxx2a_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60368.196282.patch
Type: text/x-patch
Size: 24662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190423/b7f4287a/attachment-0001.bin>


More information about the libcxx-commits mailing list