[PATCH] D54410: [libc++] Add C++17 deduction guides for std::function
Louis Dionne via Phabricator
reviews at reviews.llvm.org
Sun Nov 11 17:35:10 PST 2018
ldionne added inline comments.
================
Comment at: libcxx/include/functional:1711-1745
+template<class _Rp, class _Gp, class ..._Ap>
+struct __strip_signature<_Rp (_Gp::*) (_Ap...)> { using type = _Rp(_Ap...); };
+template<class _Rp, class _Gp, class ..._Ap>
+struct __strip_signature<_Rp (_Gp::*) (_Ap...) const> { using type = _Rp(_Ap...); };
+template<class _Rp, class _Gp, class ..._Ap>
+struct __strip_signature<_Rp (_Gp::*) (_Ap...) volatile> { using type = _Rp(_Ap...); };
+template<class _Rp, class _Gp, class ..._Ap>
----------------
Do we have something similar elsewhere I could reuse? This is ugly :(
Repository:
rCXX libc++
https://reviews.llvm.org/D54410
More information about the libcxx-commits
mailing list