version 0.4.1
Ikarus::utils::UpdateDefault Struct Reference

Default functor for updating operations. More...

#include <ikarus/utils/defaultfunctions.hh>

Public Member Functions

template<typename A , typename B >
constexpr void operator() (A &&a, B &&b) const
 

Detailed Description

This functor provides a default implementation for updating operations by performing addition. It is intended to be used in generic contexts where a default updater is needed.

Template Parameters
AType of the target operand to be updated.
BType of the value to be added for updating.
Parameters
aThe target operand to be updated.
bThe value to be added for updating.
Returns
The result of the addition operation (a += b).

Member Function Documentation

◆ operator()()

template<typename A , typename B >
constexpr void Ikarus::utils::UpdateDefault::operator() ( A &&  a,
B &&  b 
) const
inlineconstexpr

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