proconlib

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: Dummy monoid (tools/nop_monoid.hpp)

struct nop_monoid {
  using T = std::monostate;
  static T op(T, T) {
    return {};
  }
  static T e() {
    return {};
  }
};

It is a dummy monoid for tools::lazy_segtree and other variants.

Constraints

Time Complexity

License

Author

Required by

Verified with

Code

#ifndef TOOLS_NOP_MONOID_HPP
#define TOOLS_NOP_MONOID_HPP

#include <variant>

namespace tools {
  struct nop_monoid {
    using T = ::std::monostate;
    static T op(T, T) {
      return {};
    }
    static T e() {
      return {};
    }
  };
}

#endif
#line 1 "tools/nop_monoid.hpp"



#include <variant>

namespace tools {
  struct nop_monoid {
    using T = ::std::monostate;
    static T op(T, T) {
      return {};
    }
    static T e() {
      return {};
    }
  };
}


Back to top page