maomao90's Library
A C++20 library for competitive programming.
|
Only stores a value, and does not have a binary operation. More...
#include <standard_monoids.hpp>
Public Member Functions | |
ValueMonoid | merge (const ValueMonoid &o) const |
Static Public Member Functions | |
static ValueMonoid | id () |
Public Attributes | |
T | v |
Only stores a value, and does not have a binary operation.
Normally used in binary search tree if the only purpose of the BST is to split and merge without requiring any range queries.
T | the type of the value to be stored. |
|
inlinestatic |
|
inline |
T maomao90::ValueMonoid< T >::v |