Changeset 3522
- Timestamp:
- Oct 10, 2016, 9:32:16 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/Histogram.h
r2333 r3522 32 32 33 33 #include <boost/concept_check.hpp> 34 #include <boost/iterator/iterator_concepts.hpp> 34 35 35 36 #include <iosfwd> … … 230 231 Add a range [first, last) of values to Histogram. 231 232 232 ForwardIterator should be a \ref concept_data_iterator 233 Type Requirements: 234 - \c Iterator models a \ref concept_data_iterator 235 - \c Iterator models a \single_pass_iterator 233 236 234 237 \relates Histogram 235 238 */ 236 template<typename ForwardIterator> 237 void add(Histogram& h, 238 ForwardIterator first, ForwardIterator last) 239 template<typename Iterator> 240 void add(Histogram& h, Iterator first, Iterator last) 239 241 { 240 BOOST_CONCEPT_ASSERT((boost ::ForwardIterator<ForwardIterator>));241 BOOST_CONCEPT_ASSERT((utility::DataIteratorConcept< ForwardIterator>));242 utility::iterator_traits< ForwardIterator> traits;242 BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<Iterator>)); 243 BOOST_CONCEPT_ASSERT((utility::DataIteratorConcept<Iterator>)); 244 utility::iterator_traits<Iterator> traits; 243 245 while (first!=last) { 244 246 h.add(traits.data(first), traits.weight(first)); … … 249 251 /** 250 252 The Histogram output operator 251 253 252 254 \relates Histogram 253 255 */
Note: See TracChangeset
for help on using the changeset viewer.