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
9namespace 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 >
22 : public decltype( __IsDataHandle( std::declval< T >() ) )
23 {};
24
25} // namespace Dune
26
27#endif // #ifndef DUNE_ALUGRID_COMMON_TYPETRAITS_HH
Definition alu3dinclude.hh:80
std::true_type __IsDataHandle(const CommDataHandleIF< Impl, Data > &)
Definition typetraits.hh:23