Intrepid2
Static Public Attributes | Private Types | List of all members
Intrepid2::functor_returns_ref< FunctorType, ScalarType, 2 > Class Template Reference

SFINAE helper to detect whether rank-2 functor returns a reference type. More...

#include <Intrepid2_FunctorIterator.hpp>

Static Public Attributes

static constexpr bool value = !std::is_same<return_type, return_type_no_ref>::value
 

Private Types

using return_type = decltype(std::declval<FunctorType>().operator()(0,0))
 
using return_type_no_ref = typename std::remove_reference<return_type>::type
 

Detailed Description

template<typename FunctorType, typename ScalarType>
class Intrepid2::functor_returns_ref< FunctorType, ScalarType, 2 >

SFINAE helper to detect whether rank-2 functor returns a reference type.

Definition at line 80 of file Intrepid2_FunctorIterator.hpp.

Member Typedef Documentation

◆ return_type

template<typename FunctorType , typename ScalarType >
using Intrepid2::functor_returns_ref< FunctorType, ScalarType, 2 >::return_type = decltype(std::declval<FunctorType>().operator()(0,0))
private

Definition at line 82 of file Intrepid2_FunctorIterator.hpp.

◆ return_type_no_ref

template<typename FunctorType , typename ScalarType >
using Intrepid2::functor_returns_ref< FunctorType, ScalarType, 2 >::return_type_no_ref = typename std::remove_reference<return_type>::type
private

Definition at line 83 of file Intrepid2_FunctorIterator.hpp.

Member Data Documentation

◆ value

template<typename FunctorType , typename ScalarType >
constexpr bool Intrepid2::functor_returns_ref< FunctorType, ScalarType, 2 >::value = !std::is_same<return_type, return_type_no_ref>::value
staticconstexpr

Definition at line 85 of file Intrepid2_FunctorIterator.hpp.


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