Intrepid2
Intrepid2::has_rank_method< T > Class Template Reference

Tests whether a class implements rank(). Used in getFunctorRank() method below; allows us to do one thing for View and another for DynRankView and our custom Functor types. More...

#include <Intrepid2_Utils.hpp>

Classes

struct  two

Public Types

enum  { value = sizeof(test<T>(0)) == sizeof(char) }

Private Types

typedef char one

Static Private Member Functions

template<typename C>
static one test (decltype(std::declval< C >().rank()))
template<typename C>
static two test (...)

Detailed Description

template<typename T>
class Intrepid2::has_rank_method< T >

Tests whether a class implements rank(). Used in getFunctorRank() method below; allows us to do one thing for View and another for DynRankView and our custom Functor types.

Definition at line 723 of file Intrepid2_Utils.hpp.

Member Typedef Documentation

◆ one

template<typename T>
typedef char Intrepid2::has_rank_method< T >::one
private

Definition at line 725 of file Intrepid2_Utils.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename T>
anonymous enum

Definition at line 732 of file Intrepid2_Utils.hpp.


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