Created
November 23, 2016 01:05
-
-
Save picanumber/f657a096ac2aa6632fb52fc025399151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class T> | |
using perfect_capture_t = | |
std::conditional_t<std::is_lvalue_reference<T>::value, | |
std::reference_wrapper<std::remove_reference_t<T>>, T>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment