26namespace func_sketch::math {
53template <
typename ReceivedType,
typename FirstAcceptableType,
54 typename... RemainingAcceptableTypes>
56 RemainingAcceptableTypes...> {
58 using Type = std::conditional_t<
59 std::is_same_v<CommonType<ReceivedType, FirstAcceptableType>,
63 RemainingAcceptableTypes...>
::Type>;
72template <
typename ReceivedType>
85template <
typename... Types>
102 template <
typename ReceivedType>
114template <
typename Type>
122template <
typename... Types>
133template <
typename Type>
Definition of CommonType type.
Concept to check whether a type is func_sketch::math::AcceptableTypes.
Traits struct to handle acceptable number types.
details::SelectTypeToUseImpl< ReceivedType, Types... >::Type SelectTypeToUse
Select a type to use from the list of acceptable types.
Struct to indicate that there is no acceptable type.
Check whether a type is func_sketch::math::AcceptableTypes.
std::conditional_t< std::is_same_v< CommonType< ReceivedType, FirstAcceptableType >, FirstAcceptableType >, FirstAcceptableType, typename SelectTypeToUseImpl< ReceivedType, RemainingAcceptableTypes... >::Type > Type
Selected type. NoAcceptableType if there is no acceptable type.
NoAcceptableType Type
Selected type. NoAcceptableType if there is no acceptable type.
Internal implementation to select a type to use from a list of acceptable types.