Definition at line 244 of file span_test.cc.
float makeAdaptedSpanDocumentation1TestClass::accumulate |
( |
std::vector< std::unique_ptr< float >> const & |
v | ) |
|
|
inline |
Definition at line 257 of file span_test.cc.
auto make_adapted_span(BIter begin, EIter end, Adaptor &&adaptor)
void makeAdaptedSpanDocumentation1TestClass::analyse |
( |
| ) |
|
|
inline |
Definition at line 269 of file span_test.cc.
271 float const salt = 3.0;
272 constexpr std::size_t
N = 10;
274 std::vector<std::unique_ptr<float>>
data;
276 data.push_back(std::make_unique<float>(salt * i));
279 float const expectedSum = (N * (N - 1) / 2) * salt;
281 BOOST_TEST(sum == expectedSum);
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
float accumulate(std::vector< std::unique_ptr< float >> const &v)
The documentation for this struct was generated from the following file: