3#ifndef TETL_UTILITY_FORWARD_LIKE_HPP
4#define TETL_UTILITY_FORWARD_LIKE_HPP
14template <
typename T,
typename U>
20 if constexpr (isAddingConst) {
23 return static_cast<U&
>(x);
26 if constexpr (isAddingConst) {
constexpr auto move(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Moves the elements in the range [first, last), to another range beginning at destination,...
Definition move.hpp:26
Definition adjacent_find.hpp:8
constexpr auto as_const(T &t) noexcept -> add_const_t< T > &
Forms lvalue reference to const type of t.
Definition as_const.hpp:12
constexpr bool is_lvalue_reference_v
Definition is_lvalue_reference.hpp:20
constexpr bool is_const_v
Definition is_const.hpp:20
constexpr auto forward_like(U &&x) noexcept -> auto &&
Definition forward_like.hpp:15