Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::JUnityHelper< T, bool > Struct Template Reference

Auxiliary class for obtaining unity values of a given data type. More...

#include <JUnity.hh>

Static Public Member Functions

static T getUnity ()
 Get unity value.
 

Detailed Description

template<class T, bool = std::is_integral<T>::value>
struct JMATH::JUnityHelper< T, bool >

Auxiliary class for obtaining unity values of a given data type.

Definition at line 22 of file JUnity.hh.

Member Function Documentation

◆ getUnity()

template<class T , bool = std::is_integral<T>::value>
static T JMATH::JUnityHelper< T, bool >::getUnity ( )
inlinestatic

Get unity value.

The default implementation of this method returns an object which is created with the default constructor. This class should be specialised if this value does not correspond to the equivalent of a unity result.

Returns
unity

Definition at line 34 of file JUnity.hh.

35 {
36 return T();
37 }

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