ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::Segment< T > Struct Template Reference

a segment \( D[ f .. f + \ell - 1 ] \) of the array and its sum, with \( f \) the place first and \( \ell \) the length More...

#include <ADS/algorithm/MaximumSegments.h>

Public attributes

T sum {}
 the sum of its items
std::size_t first = 0
 the place of its first item
std::size_t length = 0
 0 for no segment

Detailed description

template<class T>
struct ADS::Segment< T >

a segment \( D[ f .. f + \ell - 1 ] \) of the array and its sum, with \( f \) the place first and \( \ell \) the length

Member data documentation

◆ first

template<class T>
std::size_t ADS::Segment< T >::first = 0

the place of its first item

◆ length

template<class T>
std::size_t ADS::Segment< T >::length = 0

0 for no segment

◆ sum

template<class T>
T ADS::Segment< T >::sum {}

the sum of its items


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