Searched refs:counted_sum (Results 1 – 2 of 2) sorted by relevance
39 class counted_sum class42 counted_sum():_sum(0),_count(0){} in counted_sum() function in counted_sum43 counted_sum(int sum):_sum(sum),_count(1){} in counted_sum() function in counted_sum49 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 …]
185 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()`and201 Note that no `operator -=` for a subtraction of `counted_sum` values203 `interval_map<ptime, counted_sum>`