folly::reproducible_accumulator::operator=

Assignment operators

Synopses

Declared in <folly/math/ReproducibleAccumulator.h>

Copy-assigns from another accumulator.

reproducible_accumulator&
operator=(reproducible_accumulator const& other) = default;
» more...

Move-assigns from another accumulator.

reproducible_accumulator&
operator=(reproducible_accumulator&& other) = default;
» more...

Sets this binned fp equal to the arithmetic value x NOTE: Casts x to the type of the binned fp

template<typename U>
requires std::is_arithmetic_v<U>
reproducible_accumulator&
operator=(U const x);
» more...

Return Value

A reference to this accumulator.

Parameters

NameDescription
otherThe accumulator to copy.
xThe value to assign.