libycxx

function template · 4 overloads

std::max

Scope
std
cppreference
std::max

Overloads

  1. template<class T>
    [[nodiscard]] constexpr T max(initializer_list<T> r);
    (1)
  2. template<class T>
    [[nodiscard]] constexpr const T& max(const T& a, const T& b);
    (2)
  3. template<class T, class Compare>
    [[nodiscard]] constexpr T max(initializer_list<T> r, Compare comp);
    (3)
  4. template<class T, class Compare>
    [[nodiscard]] constexpr const T& max(const T& a, const T& b, Compare comp);
    (4)