Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::integer_sequence_detail Namespace Reference

Variable Documentation

◆ is_negative_v

template<typename Type, Type Value, typename = void>
bool std::integer_sequence_detail::is_negative_v = false
externconstexpr

Helper variable used to determine if an integer value is negative.

Template Parameters
Typeinteger type
Valueinteger value to check

The primary template is always false.

◆ is_negative_v< Type, Value, enable_if_t< is_signed_v< Type > > >

template<typename Type, Type Value>
bool std::integer_sequence_detail::is_negative_v< Type, Value, enable_if_t< is_signed_v< Type > > > = int64_t{Value} < 0
externconstexpr

Helper variable used to used to determine if an integer value is negative.

Template Parameters
Typeinteger type
Valueinteger value to check

Template specialization for signed integer types.

The value is defined to be int64_t{Value} < 0. An explicit promotion to int64_t is used to avoid warnings of implicit conversions of smaller types (e.g. bool) to int.