Skip to content

Commit

Permalink
add etl::is_delegate_v<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirP1 committed Oct 12, 2024
1 parent c5ed00d commit c7817ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/etl/private/delegate_cpp11.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ namespace etl
static constexpr bool value = etl::is_base_of<delegate_tag, T>::value;
};

#if ETL_USING_CPP17

template <typename T>
inline constexpr bool is_delegate_v = is_delegate<T>::value;

#endif

//*************************************************************************
/// Declaration.
//*************************************************************************
Expand Down

0 comments on commit c7817ef

Please sign in to comment.