15 #ifndef dealii_cxx14_algorithm_h 16 #define dealii_cxx14_algorithm_h 18 #include <deal.II/base/config.h> 20 #ifdef DEAL_II_WITH_CXX14 24 DEAL_II_NAMESPACE_OPEN
27 #ifdef DEAL_II_WITH_CXX14 33 constexpr
const T &
max(
const T &a,
const T &b)
35 return (a < b) ?
b : a;
38 template<
class T,
class Compare>
39 constexpr
const T &
max(
const T &a,
const T &b, Compare comp)
41 return (comp(a, b)) ?
b : a;
45 constexpr
const T &
min(
const T &a,
const T &b)
47 return (b < a) ?
b : a;
50 template<
class T,
class Compare>
51 constexpr
const T &
min(
const T &a,
const T &b, Compare comp)
53 return (comp(b, a)) ?
b : a;
58 DEAL_II_NAMESPACE_CLOSE
60 #endif // dealii_cxx14_algorithm_h
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
T min(const T &t, const MPI_Comm &mpi_communicator)
T max(const T &t, const MPI_Comm &mpi_communicator)