maomao90's Library
A C++20 library for competitive programming.
Loading...
Searching...
No Matches
maomao90::ValueMonoid< T > Struct Template Reference

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

v
 

Detailed Description

template<typename T>
struct maomao90::ValueMonoid< T >

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.

Template Parameters
Tthe type of the value to be stored.

Member Function Documentation

◆ id()

template<typename T>
static ValueMonoid maomao90::ValueMonoid< T >::id ( )
inlinestatic

◆ merge()

template<typename T>
ValueMonoid maomao90::ValueMonoid< T >::merge ( const ValueMonoid< T > & o) const
inline

Member Data Documentation

◆ v

template<typename T>
T maomao90::ValueMonoid< T >::v

The documentation for this struct was generated from the following file: