SUNphi  1.0
SUNphi::CanPrint< S, T > Struct Template Reference

#include <TypeTraits.hpp>

Static Public Member Functions

template<typename U , typename V >
static auto test (U *) -> decltype(std::declval< U >()<< std::declval< V >())
 
template<typename , typename >
static auto test (...) -> std::false_type
 

Static Public Attributes

static constexpr bool res = not isSame<std::false_type,decltype(test<S,T>(0))>
 

Detailed Description

template<typename S, typename T>
struct SUNphi::CanPrint< S, T >

Structure used to check if the operator is implemented

Definition at line 699 of file TypeTraits.hpp.

Member Function Documentation

template<typename S , typename T >
template<typename U , typename V >
static auto SUNphi::CanPrint< S, T >::test ( U *  ) -> decltype(std::declval< U >()<< std::declval< V >())
static

Path followed when the operator is implemented

template<typename S , typename T >
template<typename , typename >
static auto SUNphi::CanPrint< S, T >::test (   ...) -> std::false_type
static

Default case in which the binary operation cannot be performed

Member Data Documentation

template<typename S , typename T >
constexpr bool SUNphi::CanPrint< S, T >::res = not isSame<std::false_type,decltype(test<S,T>(0))>
static

Result of the check

Definition at line 699 of file TypeTraits.hpp.


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