AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Types | List of all members
autopas::utils::Math::internal::int_t_impl< FloatType > Struct Template Reference

Helper struct to get the correspondingly sized integer for a given floating type. More...

#include <Math.h>

Public Types

using type = std::conditional_t< bit_size_v< FloatType >==32, std::int32_t, std::int64_t >
 access the int data type
 

Detailed Description

template<std::floating_point FloatType>
struct autopas::utils::Math::internal::int_t_impl< FloatType >

Helper struct to get the correspondingly sized integer for a given floating type.

As 128-bit type floating points are not yet available in C++20, we ensure it will fail to be instantiated with a hint to extend the functionality (since installation with 128-bit implies these types being then in the standard)

Template Parameters
FloatTypefloating point type

The documentation for this struct was generated from the following file: