Home
last modified time | relevance | path

Searched refs:counted_sum (Results 1 – 2 of 2) sorted by relevance

/third_party/boost/libs/icl/example/partys_height_average_/
Dpartys_height_average.cpp39 class counted_sum class
42 counted_sum():_sum(0),_count(0){} in counted_sum() function in counted_sum
43 counted_sum(int sum):_sum(sum),_count(1){} in counted_sum() function in counted_sum
49 counted_sum& operator += (const counted_sum& right) in operator +=()
57 bool operator == (const counted_sum& left, const counted_sum& right) in operator ==()
63 interval_map<ptime, counted_sum> height_sums; in partys_height_average()
70 counted_sum(165)); // Mary is 1,65 m tall. in partys_height_average()
77 counted_sum(180)); // Harry is 1,80 m tall. in partys_height_average()
84 counted_sum(170)); // Diana is 1,70 m tall. in partys_height_average()
91 counted_sum(165)); // Susan is 1,65 m tall. in partys_height_average()
[all …]
/third_party/boost/libs/icl/doc/
Dexamples.qbk185 The average height of guests. This is done by defining a `class counted_sum`
195 Required for `class counted_sum` is a default constructor
196 `counted_sum()`and
201 Note that no `operator -=` for a subtraction of `counted_sum` values
203 `interval_map<ptime, counted_sum>`