polyfill missing standard library functions More...
#include <type_traits>
Go to the source code of this file.
Namespaces | |
namespace | std |
namespace | std::detail |
Typedefs | |
template<typename T , typename U > | |
using | std::detail::override_ref_t = conditional_t<is_rvalue_reference_v<T>, remove_reference_t<U> &&, U &> |
template<typename T , typename U > | |
using | std::detail::copy_const_t = conditional_t<is_const_v<remove_reference_t<T>>, U const, U> |
template<typename T , typename U > | |
using | std::detail::forward_like_t = override_ref_t<T &&, copy_const_t<T, remove_reference_t<U>>> |
Functions | |
template<typename T > | |
constexpr auto | std::forward_like (auto &&x) noexcept -> detail::forward_like_t< T, decltype(x)> |
Returns a reference to x which has similar properties to T&&. | |
polyfill missing standard library functions
This file works around limitations of the installed libc++ / stdc++
Definition in file forward_like.hpp.