SUNphi
1.0
|
Defines convenient macro and types for Universal References. More...
#include <metaprogramming/TypeTraits.hpp>
Go to the source code of this file.
Macros | |
#define | UNIVERSAL_REFERENCE_CONSTRUCTOR_OF_WRAPPER_DISABLE(T, WRAPPER) typename=EnableIf<not isBaseOf<WRAPPER<T>,T>> |
See http://ericniebler.com/2013/08/07/universal-references-and-the-copy-constructo/. | |
#define | DECLAUTO decltype(auto) |
Short name for decltype(auto) | |
Functions | |
template<class T , class U , class = EnableIf<(isLvalue<T> ? isLvalue<U> : true) and std::is_convertible<RemRef<U>*, RemRef<T>*>::value>> | |
constexpr T && | SUNphi::forw (U &&u) |
Forward according to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2951.html. More... | |
Defines convenient macro and types for Universal References.
https://isocpp.org/blog/2012/11/universal-references-in-c11-scott-meyers
Definition in file UniversalReferences.hpp.
constexpr T&& SUNphi::forw | ( | U && | u | ) |
Forward according to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2951.html.
u | Variable to forward |
Definition at line 28 of file UniversalReferences.hpp.