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 34 max(
const T &a,
const T &b)
36 return (a < b) ?
b : a;
39 template <
class T,
class Compare>
41 max(
const T &a,
const T &b, Compare comp)
43 return (comp(a, b)) ?
b : a;
48 min(
const T &a,
const T &b)
50 return (b < a) ?
b : a;
53 template <
class T,
class Compare>
55 min(
const T &a,
const T &b, Compare comp)
57 return (comp(b, a)) ?
b : a;
62 DEAL_II_NAMESPACE_CLOSE
64 #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)