compro_library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub siro53/compro_library

:warning: data-structure/monoid/max.hpp

Code

#pragma once

#include <algorithm>
#include <limits>

template <typename T, T MINUS_INF = std::numeric_limits<T>::min()> struct MonoidMax {
    using value_type = T;
    inline static T op(const T &l, const T &r) { return std::max(l, r); }
    inline static T e() { return MINUS_INF; }
};
#line 2 "data-structure/monoid/max.hpp"

#include <algorithm>
#include <limits>

template <typename T, T MINUS_INF = std::numeric_limits<T>::min()> struct MonoidMax {
    using value_type = T;
    inline static T op(const T &l, const T &r) { return std::max(l, r); }
    inline static T e() { return MINUS_INF; }
};
Back to top page