piranha  0.10
Static Public Attributes | List of all members
piranha::has_degree< T > Class Template Reference

Type trait to detect if type has a degree property. More...

#include <piranha/math.hpp>

Inherits piranha::detail::sfinae_types.

Static Public Attributes

static const bool value
 Value of the type trait. More...
 

Detailed Description

template<typename T>
class piranha::has_degree< T >

Type trait to detect if type has a degree property.

The type trait will be true if instances of type T can be used as arguments of piranha::math::degree() (both in the unary and binary version of the function).

Definition at line 1881 of file math.hpp.

Member Data Documentation

◆ value

template<typename T >
const bool piranha::has_degree< T >::value
static
Initial value:
= std::is_same<decltype(test1(std::declval<T>())), yes>::value
&& std::is_same<decltype(test2(std::declval<T>())), yes>::value

Value of the type trait.

Definition at line 1892 of file math.hpp.


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