dune-alugrid  3.0.0
typetraits.hh
Go to the documentation of this file.
1 #ifndef DUNE_ALUGRID_COMMON_TYPETRAITS_HH
2 #define DUNE_ALUGRID_COMMON_TYPETRAITS_HH
3 
4 #include <type_traits>
5 #include <utility>
6 
7 #include <dune/grid/common/datahandleif.hh>
8 
9 namespace Dune
10 {
11 
12  // IsDataHandle
13  // -----------
14 
15  template< class Impl, class Data >
16  std::true_type __IsDataHandle ( const CommDataHandleIF< Impl, Data > & );
17 
18  std::false_type __IsDataHandle ( ... );
19 
20  template< class T >
21  struct IsDataHandle
22  : public decltype( __IsDataHandle( std::declval< T >() ) )
23  {};
24 
25 } // namespace Dune
26 
27 #endif // #ifndef DUNE_ALUGRID_COMMON_TYPETRAITS_HH
Dune::__IsDataHandle
std::true_type __IsDataHandle(const CommDataHandleIF< Impl, Data > &)
Dune::IsDataHandle
Definition: typetraits.hh:21
Dune
Definition: alu3dinclude.hh:79