MCPcopy Create free account
hub / github.com/boostorg/histogram / add

Method add

include/boost/histogram/storage/array_storage.hpp:79–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78 template <typename U>
79 void add(std::size_t i, const U& x) noexcept {
80 BOOST_ASSERT(i < size());
81 array_[i] += x;
82 }
83
84 const_reference operator[](std::size_t i) const noexcept {
85 BOOST_ASSERT(i < size());

Callers 7

increase_and_grow_implFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
operator()Method · 0.45
reduce_toMethod · 0.45

Calls

no outgoing calls

Tested by 5

increase_and_grow_implFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36