一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
forward_like.hpp File Reference

polyfill missing standard library functions More...

#include <type_traits>
Include dependency graph for forward_like.hpp:

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&&.
 

Detailed Description

polyfill missing standard library functions

SPDX-FileType: Source
SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0

This file works around limitations of the installed libc++ / stdc++

Definition in file forward_like.hpp.