File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class mean {
30
30
using value_type = ValueType;
31
31
using const_reference = const value_type&;
32
32
33
- struct impl_type {
33
+ struct data_type {
34
34
value_type sum_;
35
35
value_type mean_;
36
36
value_type sum_of_deltas_squared_;
@@ -152,7 +152,7 @@ class mean {
152
152
}
153
153
154
154
private:
155
- impl_type data_{0 , 0 , 0 };
155
+ data_type data_{0 , 0 , 0 };
156
156
157
157
friend struct ::boost::histogram::unsafe_access;
158
158
};
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ struct unsafe_access {
97
97
Get buffer of unlimited_storage.
98
98
@param storage instance of unlimited_storage.
99
99
*/
100
- template <class Allocator >
101
- static constexpr auto & unlimited_storage_buffer (unlimited_storage<Allocator> & storage) {
100
+ template <class T >
101
+ static constexpr auto & unlimited_storage_buffer (T & storage) {
102
102
return storage.buffer_ ;
103
103
}
104
104
@@ -107,16 +107,16 @@ struct unsafe_access {
107
107
@param storage instance of storage_adaptor.
108
108
*/
109
109
template <class T >
110
- static constexpr auto & storage_adaptor_impl (storage_adaptor<T> & storage) {
111
- return static_cast <typename storage_adaptor<T> ::impl_type&>(storage);
110
+ static constexpr auto & storage_adaptor_impl (T & storage) {
111
+ return static_cast <typename T ::impl_type&>(storage);
112
112
}
113
113
114
114
/* *
115
- Get internal data of accumulators::mean .
115
+ Get internal data of accumulator .
116
116
@param obj instance of accumulator.
117
117
*/
118
118
template <class T >
119
- static constexpr auto & accumulators_mean_impl (T& m) {
119
+ static constexpr auto & accumulator_data (T& m) {
120
120
return m.data_ ;
121
121
}
122
122
};
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ int main() {
118
118
a (2 );
119
119
120
120
BOOST_TEST_EQ (a.count (), 2 );
121
- unsafe_access::accumulators_mean_impl (a).sum_ = 1 ;
121
+ unsafe_access::accumulator_data (a).sum_ = 1 ;
122
122
BOOST_TEST_EQ (a.count (), 1 );
123
123
}
124
124
You can’t perform that action at this time.
0 commit comments