16#ifndef dealii_template_constraints_h
17#define dealii_template_constraints_h
41 namespace SupportsOperation
52 template <
class Default,
75 template <
class Default,
template <
class...>
class Op,
class... Args>
102 template <
class Default,
template <
class...>
class Op,
class... Args>
105 template <
template <
class...>
class Op,
class... Args>
108 template <
template <
class...>
class Op,
class... Args>
111 template <
class Default,
template <
class...>
class Op,
class... Args>
114 template <
class Expected,
template <
class...>
class Op,
class... Args>
117 template <
class To,
template <
class...>
class Op,
class... Args>
119 std::is_convertible<
detected_t<Op, Args...>, To>;
157 template <
template <
class...>
class Op,
class... Args>
166 namespace TemplateConstraints
173 template <
bool... Values>
185 template <
bool... Values>
198 template <
bool... Values>
202 template <
bool V1,
bool... Values>
212 static constexpr bool value =
false;
223template <
class Base,
class... Derived>
227 std::is_base_of<Base, Derived>::value...>
::value;
238template <
class Type,
class... Types>
242 std::is_same<Type, Types>::value...>
::value;
253template <
class Type,
class... Types>
257 std::is_same<Type, Types>::value...>
::value;
287template <
bool... Values>
289 : std::enable_if<internal::TemplateConstraints::all_true<Values...>::value>
319template <
bool... Values>
330 decltype(std::begin(std::declval<T>()), std::end(std::declval<T>()));
334 internal::is_supported_operation<begin_and_end_t, T>;
353template <
typename ArgType,
typename ValueType>
388 template <
typename T>
402 template <
typename T,
typename U>
424 template <
typename T,
typename U>
427 using type =
decltype(std::declval<T>() * std::declval<U>());
480template <
typename T,
typename U>
485 typename std::decay<U>::type>
::type;
495 template <
typename T>
501 template <
typename T,
typename U>
504 using type = std::complex<typename ProductType<T, U>::type>;
507 template <
typename U>
510 using type = std::complex<typename ProductType<double, U>::type>;
513 template <
typename T>
516 using type = std::complex<typename ProductType<T, double>::type>;
519 template <
typename U>
522 using type = std::complex<typename ProductType<float, U>::type>;
525 template <
typename T>
528 using type = std::complex<typename ProductType<T, float>::type>;
632template <
typename Number>
635template <
typename Number>
640 template <
typename Number>
643 template <
typename Number>
646 namespace distributed
648 template <
typename Number,
typename MemorySpace>
651 template <
typename Number>
656#ifdef DEAL_II_WITH_PETSC
674#ifdef DEAL_II_WITH_TRILINOS
686 namespace EpetraWrappers
691# ifdef DEAL_II_TRILINOS_WITH_TPETRA
692 namespace TpetraWrappers
694 template <
typename Number>
709#if defined(DEAL_II_HAVE_CXX20) || defined(DOXYGEN)
719 template <
int dim,
int spacedim>
731 template <
typename T>
734 template <
typename Number>
737 template <
typename Number>
741 template <
typename Number>
742 inline constexpr bool
745 template <
typename Number>
746 inline constexpr bool
749 template <
typename Number,
typename MemorySpace>
753 template <
typename Number>
757# ifdef DEAL_II_WITH_PETSC
763 inline constexpr bool
767 inline constexpr bool
771 inline constexpr bool
775# ifdef DEAL_II_WITH_TRILINOS
777 inline constexpr bool
781 inline constexpr bool
785 inline constexpr bool
789# ifdef DEAL_II_TRILINOS_WITH_TPETRA
790 template <
typename Number>
804 template <
typename T>
807# ifdef DEAL_II_WITH_PETSC
809 inline constexpr bool
813 inline constexpr bool
817 inline constexpr bool
821 inline constexpr bool
825 inline constexpr bool
838 template <
typename T>
841# ifdef DEAL_II_WITH_PETSC
843 inline constexpr bool
865 template <
typename VectorType>
867 internal::is_dealii_vector_type<std::remove_cv_t<VectorType>>;
878 template <
typename VectorType>
880 (std::is_const_v<VectorType> ==
891 template <
typename VectorType>
893 internal::is_dealii_petsc_vector_type<VectorType>;
903 template <
typename VectorType>
905 internal::is_dealii_petsc_matrix_type<VectorType>;
910template <
int dim,
int spacedim>
914template <
int dim,
int spacedim>
920 namespace distributed
922 template <
int dim,
int spacedim>
928 template <
int dim,
int spacedim>
932 namespace fullydistributed
934 template <
int dim,
int spacedim>
942#if defined(DEAL_II_HAVE_CXX20) || defined(DOXYGEN)
945 template <
typename T>
948 template <
int dim,
int spacedim>
949 inline constexpr bool
952 template <
int dim,
int spacedim>
956 template <
int dim,
int spacedim>
960 template <
int dim,
int spacedim>
964 template <
int dim,
int spacedim>
965 inline constexpr bool
977 template <
typename MeshType>
979 internal::is_triangulation_or_dof_handler<MeshType>;
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
typename detected_or< Default, Op, Args... >::type detected_or_t
std::is_convertible< detected_t< Op, Args... >, To > is_detected_convertible
typename detected_or< nonesuch, Op, Args... >::value_t is_detected
typename detected_or< nonesuch, Op, Args... >::type detected_t
std::is_same< Expected, detected_t< Op, Args... > > is_detected_exact
constexpr bool is_supported_operation
static bool equal(const T *p1, const T *p2)
static bool equal(const T *, const U *)
typename internal::ProductTypeImpl< typename std::decay< T >::type, typename std::decay< U >::type >::type type
static constexpr bool value
ValueType operator()(const ArgType &)
std::complex< typename ProductType< double, U >::type > type
std::complex< typename ProductType< float, U >::type > type
std::complex< typename ProductType< T, double >::type > type
std::complex< typename ProductType< T, float >::type > type
std::complex< typename ProductType< T, U >::type > type
decltype(std::declval< T >() *std::declval< U >()) type
nonesuch(nonesuch const &)=delete
void operator=(nonesuch const &)=delete
static constexpr bool value
static constexpr bool value
static constexpr bool value
typename enable_if_all< Values... >::type enable_if_all_t
decltype(std::begin(std::declval< T >()), std::end(std::declval< T >())) begin_and_end_t
constexpr bool has_begin_and_end