Updated functional.h from the code in the inplace_function branch

This commit is contained in:
John Wellbelove 2025-12-19 08:26:27 +00:00
parent 1ac82dc83e
commit 054fca0e25

View File

@ -143,6 +143,21 @@ namespace etl
using unwrap_ref_decay_t = typename unwrap_ref_decay<T>::type;
#endif
//***************************************************************************
// is_reference_wrapper
// Detect etl::reference_wrapper<T>
//***************************************************************************
template <typename T>
struct is_reference_wrapper : etl::false_type {};
template <typename T>
struct is_reference_wrapper<etl::reference_wrapper<T> > : etl::true_type {};
#if ETL_USING_CPP17
template <typename T>
inline constexpr bool is_reference_wrapper_v = is_reference_wrapper<T>::value;
#endif
//***************************************************************************
/// unary_function
//***************************************************************************