pixled-lib  1.0
Static Public Attributes | List of all members
pixled::is_pixled_function< T > Struct Template Reference

#include <function.h>

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<typename T>
struct pixled::is_pixled_function< T >

Checks if the specified type T is a pixled::Function.

Can be used to easily generate SFINAE condition for operator overloading (see pixled/arithmetic/arithmetic.h).

Template Parameters
Ttype to check

Member Data Documentation

◆ value

template<typename T >
constexpr bool pixled::is_pixled_function< T >::value
staticconstexpr
Initial value:
=
std::is_base_of<
base::PixledFunctionTrait,
typename std::remove_reference<T>::type
static constexpr bool value
Definition: function.h:82

True iff a type R exists such as T implements base::Function<R>, i.e. base::PixledFunctionTrait is a base of T.


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