folly::reproducible_accumulator::reproducible_accumulator

Constructors

Synopses

Declared in <folly/math/ReproducibleAccumulator.h>

Default-constructs a zero-valued accumulator.

reproducible_accumulator() = default;
» more...

Copy-constructs an accumulator from another.

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

Move-constructs an accumulator from another.

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

Construct from an arithmetic scalar value NOTE: Casts x to the type of the binned fp

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

Parameters

NameDescription
otherThe accumulator to copy.
xThe value to accumulate.