namespace ov::internal

Overview

namespace internal {

// global functions

template <class T, class U = T>
constexpr bool is_max(const T& value);

template <class T, class U = T>
constexpr bool is_min(const T& value);

} // namespace internal

Detailed Documentation

Global Functions

template <class T, class U = T>
constexpr bool is_max(const T& value)

Check if value of type T has got maximum value of type U.

Parameters:

T

Input value type

U

Type to get its minimum for comparision. Default same as T.

value

Input value.

Returns:

True if input value has got maximum value of type U otherwise false.

template <class T, class U = T>
constexpr bool is_min(const T& value)

Check if value of type T has got minimum value of type U.

Parameters:

T

Input value type.

U

Type to get its minimum for comparision. Default same as T.

value

Input value.

Returns:

True if input value has got minimum value of type U otherwise false.