aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
gum::GUM_HasNumericLimits Concept Reference

Concept checking that std::numeric_limits is specialized for a type. More...

#include <concepts.h>

Concept definition

template< typename T >
concept GUM_HasNumericLimits = requires {
{ std::numeric_limits< T >::min() } -> std::convertible_to< T >;
{ std::numeric_limits< T >::max() } -> std::convertible_to< T >;
{ std::numeric_limits< T >::infinity() } -> std::convertible_to< T >;
{ std::numeric_limits< T >::is_specialized } -> std::convertible_to< bool >;
}
Concept checking that std::numeric_limits is specialized for a type.
Definition concepts.h:70

Detailed Description

Concept checking that std::numeric_limits is specialized for a type.

This concept verifies that the type has proper numeric_limits support, including min(), max(), and infinity() for use in aggregation operations.

Template Parameters
TThe type to check

Definition at line 70 of file concepts.h.