![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
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 | |
reduce value policy for a C++14 compliant implementation
| Value | accumulator 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.
| using std::inner_product_detail::reduce_value_policy< Value >::value_type = Value |
value type to use in the underlying implementation function
|
inlinestaticconstexprnoexcept |
generalized access
| acc | rvalue reference to the accumulator |
move(acc)
|
inlinestaticconstexprnoexcept |
generalized access
| acc | lvalue reference to the accumulator |
acc
|
inlinestaticconstexprnoexcept |
generalized assignment
| Result | result type |
| acc | reference to the accumulator |
| result | value to assign |
Update acc with result with the value_type assignment operation.