walberla::math::SqrtTrait< T > Struct Template Reference

Detailed Description

template<typename T>
struct walberla::math::SqrtTrait< T >

Base template for the SqrtTrait class.

The SqrtTrait template evaluates the return type of the std::sqrt function depending on the type of the argument. In case of an integral data type, the return value of the std::sqrt function is double, whereas the return type is float for single precision arguments and long double for long double precision arguments.

Template argument T Type
float float
integral data types and double double
long double long double

#include <SqrtTrait.h>

Public Types

using Type = double
 Return type of std::sqrt for integral and double arguments. More...
 

Member Typedef Documentation

◆ Type

template<typename T >
using walberla::math::SqrtTrait< T >::Type = double

Return type of std::sqrt for integral and double arguments.


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