__cpp_lib_forward_like 202207L (C++23) std::forward_like Possible implementation template<class T, class U> constexpr auto&& forward_like(U&& x) noexcept { constexpr bool is_adding_const = std::is_const_v<std::remove_reference_t<T>>; if constexpr (std::is_lvalue_reference_v<T...
功能特性测试宏值标准功能特性 __cpp_lib_forward_like 202207L (C++23) std::forward_like 可能的实现template<class T, class U> constexpr auto&& forward_like(U&& x) noexcept { constexpr bool is_adding_const = std::is_const_v<std::remove_reference_t<T>>; if constexpr (std::is_...