Last active
June 7, 2024 00:32
-
-
Save ObserverHerb/8ca78add169ca1e3bc640b420c0fe483 to your computer and use it in GitHub Desktop.
Each element of T remains a pointer if it's a pointer, otherwise the type becomes a reference
This file contains hidden or 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 <typename ...T> void Test(typename std::conditional<std::is_pointer<T>::value,T,T&>::type ...args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment