Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::inner_product_detail::reduce_value_policy< Value > Class Template Reference

reduce value policy for a C++14 compliant implementation More...

Public Types

using value_type = Value
 value type to use in the underlying implementation function
 

Static Public Member Functions

static constexpr auto access (value_type &&acc) noexcept -> Value &&
 generalized access
 
static constexpr auto access (value_type &acc) noexcept -> Value &
 generalized access
 
template<class Result>
static constexpr auto assign (value_type &acc, Result &&result) noexcept(std::is_nothrow_assignable< Value &, Result && >::value) -> void
 generalized assignment
 

Detailed Description

template<class Value>
class std::inner_product_detail::reduce_value_policy< Value >

reduce value policy for a C++14 compliant implementation

Template Parameters
Valueaccumulator value type

This reduce value policy has an access function that does not std::move the accumulator, it simply provides a reference. The assign function is equivalent to operator=.

The policy value is simply Value unchanged.

Member Typedef Documentation

◆ value_type

template<class Value>
using std::inner_product_detail::reduce_value_policy< Value >::value_type = Value

value type to use in the underlying implementation function

Member Function Documentation

◆ access() [1/2]

template<class Value>
static constexpr auto std::inner_product_detail::reduce_value_policy< Value >::access ( value_type && acc) -> Value&&
inlinestaticconstexprnoexcept

generalized access

Parameters
accrvalue reference to the accumulator
Returns
move(acc)

◆ access() [2/2]

template<class Value>
static constexpr auto std::inner_product_detail::reduce_value_policy< Value >::access ( value_type & acc) -> Value&
inlinestaticconstexprnoexcept

generalized access

Parameters
acclvalue reference to the accumulator
Returns
acc

◆ assign()

template<class Value>
template<class Result>
static constexpr auto std::inner_product_detail::reduce_value_policy< Value >::assign ( value_type & acc,
Result && result ) -> void
inlinestaticconstexprnoexcept

generalized assignment

Template Parameters
Resultresult type
Parameters
accreference to the accumulator
resultvalue to assign

Update acc with result with the value_type assignment operation.


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