11template <
class T,
class U>
12constexpr auto min(
const T &
a,
const U &b) ->
decltype(b <
a ? b :
a) {
18template <
class T,
class U>
19constexpr auto max(
const T &
a,
const U &b) ->
decltype(
a < b ? b :
a) {
#define BEGIN_AH_NAMESPACE
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
constexpr auto min(const T &a, const U &b) -> decltype(b< a ? b :a)
Return the smaller of two numbers/objects.
constexpr auto max(const T &a, const U &b) -> decltype(a< b ? b :a)
Return the larger of two numbers/objects.