Intrepid2
Classes | Public Types | Private Types | Static Private Member Functions | List of all members
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.


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