Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::SumMonoid< T > Struct Template Reference

Sum monoid: identity = 0, combine = a + b. More...

#include <tpl_link_cut_tree.H>

Public Types

using supports_counted_lazy = std::true_type
 

Static Public Member Functions

static constexpr T identity () noexcept
 
static constexpr T combine (const T &a, const T &b) noexcept
 

Detailed Description

template<typename T>
struct Aleph::SumMonoid< T >

Sum monoid: identity = 0, combine = a + b.

Definition at line 136 of file tpl_link_cut_tree.H.

Member Typedef Documentation

◆ supports_counted_lazy

template<typename T >
using Aleph::SumMonoid< T >::supports_counted_lazy = std::true_type

Definition at line 138 of file tpl_link_cut_tree.H.

Member Function Documentation

◆ combine()

template<typename T >
static constexpr T Aleph::SumMonoid< T >::combine ( const T a,
const T b 
)
inlinestaticconstexprnoexcept

Definition at line 142 of file tpl_link_cut_tree.H.

◆ identity()

template<typename T >
static constexpr T Aleph::SumMonoid< T >::identity ( )
inlinestaticconstexprnoexcept

Definition at line 140 of file tpl_link_cut_tree.H.


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