5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_FORWARD_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_FORWARD_HPP_
14#include "stdlib/include/stdlib_detail/is_lvalue_reference.hpp"
15#include "stdlib/include/stdlib_detail/remove_reference.hpp"
24constexpr auto forward(remove_reference_t<T>& value)
noexcept -> T&& {
25 return static_cast<T&&>(value);
38constexpr auto forward(remove_reference_t<T>&& value)
noexcept -> T&& {
39 static_assert(!is_lvalue_reference_v<T>,
"Cannot forward an rvalue as an lvalue");
40 return static_cast<T&&>(value);
constexpr auto forward(remove_reference_t< T > &&value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:38
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24
constexpr auto operator()(::arene::base::result< void, E > const &value) const noexcept(noexcept(hash< E >{}(std::declval< E const & >()))) -> std::size_t
Calculate the hash of a result.
Definition result.hpp:1827