Rheolef  7.1
an efficient C++ finite element environment
container_traits.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_CONTAINER_TRAITS_H
2 #define _RHEOLEF_CONTAINER_TRAITS_H
23 // traits class for disarray<T>
24 // for T=simple type
25 // or T=index_set or pair_set, i.e. container type
26 // also says when T is a simple mpi_datatype or a container of mpi_datatype
27 // --------------------------------------------------------------------------
28 #include <boost/serialization/utility.hpp>
29 #include "rheolef/msg_util.h" // set_op<T1,T2>
30 #ifdef _RHEOLEF_HAVE_MPI
31 #include <boost/mpi/datatype.hpp>
32 #endif // _RHEOLEF_HAVE_MPI
33 
34 namespace rheolef {
35  template <class T>
36  struct default_set_op {
37  typedef set_op<T,T> type;
38  };
39  template<class T>
40  struct is_container : std::false_type {
41  typedef std::false_type type;
42  };
43 #ifdef _RHEOLEF_HAVE_MPI
44  template <class T>
45  struct is_container_of_mpi_datatype : std::false_type {
46  typedef std::false_type type;
47  };
48 #endif // _RHEOLEF_HAVE_MPI
49 } // namespace rheolef
50 #endif // _RHEOLEF_CONTAINER_TRAITS_H
51 
This file is part of Rheolef.
std::false_type type