Changeset 3527
- Timestamp:
- Oct 11, 2016, 9:06:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/Averager.h
r2817 r3527 31 31 32 32 #include <boost/concept_check.hpp> 33 #include <boost/iterator/iterator_concepts.hpp> 33 34 34 35 #include <cmath> … … 86 87 \brief adding a range of values to Averager \a a 87 88 89 Type Requirements: 90 - \c InputIterator is a \readable_iterator 91 - \c InputIterator is \single_pass_iterator 92 - \c InputIterator 's value type is convertible to \c double 93 88 94 \relates Averager 89 95 */ … … 91 97 void add(Averager& a, InputIterator first, InputIterator last) 92 98 { 93 BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator>)); 99 BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<InputIterator>)); 100 BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator>)); 101 typedef typename boost::iterator_value<InputIterator>::type T; 102 BOOST_CONCEPT_ASSERT((boost::Convertible<T, double>)); 94 103 utility::check_iterator_is_unweighted(first); 95 104 for ( ; first != last; ++first)
Note: See TracChangeset
for help on using the changeset viewer.