dune-common  2.5.0
Classes | Typedefs
Type Utilities

Type traits, overload helpers, and other utilities for type computations. More...

Collaboration diagram for Type Utilities:

Classes

struct  Dune::TypeList< T >
 A simple type list. More...
 
struct  Dune::IsTypeList< T >
 Check if given type is a TypeList. More...
 
struct  Dune::IsTypeList< TypeList< T... > >
 Check if given type is a TypeList. More...
 
struct  Dune::IsEmptyTypeList< T >
 Check if given type is an empty TypeList. More...
 
struct  Dune::TypeListSize< TypeList< T... > >
 Get size of TypeList. More...
 
struct  Dune::TypeListElement< i, TypeList< T... > >
 Get element of TypeList. More...
 
struct  Dune::PriorityTag< priority >
 Helper class for tagging priorities. More...
 
struct  Dune::PriorityTag< 0 >
 Helper class for tagging priorities. More...
 

Typedefs

template<class This , class... T>
using Dune::disableCopyMove = typename std::enable_if<(not(std::is_same< This, typename std::tuple_element< 0, std::tuple< typename std::decay< T >::type... > >::type >::value) and not(std::is_base_of< This, typename std::tuple_element< 0, std::tuple< typename std::decay< T >::type... > >::type >::value)), int >::type
 Helper to disable constructor as copy and move constructor. More...
 

Detailed Description

Type traits, overload helpers, and other utilities for type computations.

Typedef Documentation

§ disableCopyMove

template<class This , class... T>
using Dune::disableCopyMove = typedef typename std::enable_if< (not(std::is_same<This, typename std::tuple_element<0, std::tuple<typename std::decay<T>::type...> >::type >::value) and not(std::is_base_of<This, typename std::tuple_element<0, std::tuple<typename std::decay<T>::type...> >::type >::value)), int>::type

Helper to disable constructor as copy and move constructor.

Helper typedef to remove constructor with forwarding reference from overload set for copy and move constructor or assignment.