limes 3.1.0
Composable Calculus Expressions for C++20
Loading...
Searching...
No Matches
limes::algorithms::accumulators::simple_accumulator< T > Class Template Reference

#include <accumulators.hpp>

Public Types

using value_type = T
 

Public Member Functions

constexpr simple_accumulator () noexcept
 
constexpr simple_accumulator (T init) noexcept
 
constexpr simple_accumulatoroperator+= (T value) noexcept
 
constexpr simple_accumulatoroperator-= (T value) noexcept
 
constexpr T operator() () const noexcept
 
constexpr operator T () const noexcept
 
constexpr void reset () noexcept
 

Detailed Description

template<Field T>
class limes::algorithms::accumulators::simple_accumulator< T >

Definition at line 14 of file accumulators.hpp.

Member Typedef Documentation

◆ value_type

template<Field T>
using limes::algorithms::accumulators::simple_accumulator< T >::value_type = T

Definition at line 16 of file accumulators.hpp.

Constructor & Destructor Documentation

◆ simple_accumulator() [1/2]

template<Field T>
constexpr limes::algorithms::accumulators::simple_accumulator< T >::simple_accumulator ( )
inlineconstexprnoexcept

Definition at line 18 of file accumulators.hpp.

◆ simple_accumulator() [2/2]

template<Field T>
constexpr limes::algorithms::accumulators::simple_accumulator< T >::simple_accumulator ( init)
inlineexplicitconstexprnoexcept

Definition at line 19 of file accumulators.hpp.

Member Function Documentation

◆ operator T()

template<Field T>
constexpr limes::algorithms::accumulators::simple_accumulator< T >::operator T ( ) const
inlineconstexprnoexcept

Definition at line 32 of file accumulators.hpp.

◆ operator()()

template<Field T>
constexpr T limes::algorithms::accumulators::simple_accumulator< T >::operator() ( ) const
inlineconstexprnoexcept

Definition at line 31 of file accumulators.hpp.

◆ operator+=()

template<Field T>
constexpr simple_accumulator & limes::algorithms::accumulators::simple_accumulator< T >::operator+= ( value)
inlineconstexprnoexcept

Definition at line 21 of file accumulators.hpp.

◆ operator-=()

template<Field T>
constexpr simple_accumulator & limes::algorithms::accumulators::simple_accumulator< T >::operator-= ( value)
inlineconstexprnoexcept

Definition at line 26 of file accumulators.hpp.

◆ reset()

template<Field T>
constexpr void limes::algorithms::accumulators::simple_accumulator< T >::reset ( )
inlineconstexprnoexcept

Definition at line 34 of file accumulators.hpp.


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