diff --git a/include/boost/gil/concepts/image_view.hpp b/include/boost/gil/concepts/image_view.hpp index 0818b9cd35..cac9b13af1 100644 --- a/include/boost/gil/concepts/image_view.hpp +++ b/include/boost/gil/concepts/image_view.hpp @@ -120,13 +120,13 @@ struct RandomAccessNDImageViewConcept static const std::size_t N=View::num_dimensions; gil_function_requires>(); - gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); + gil_function_requires>(); using first_it_type = typename View::template axis<0>::iterator; using last_it_type = typename View::template axis::iterator; - gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); + gil_function_requires>(); // static_assert(typename std::iterator_traits::difference_type, typename point_t::template axis<0>::coord_t>::value, ""); // static_assert(typename std::iterator_traits::difference_type, typename point_t::template axis::coord_t>::value, ""); @@ -399,19 +399,19 @@ struct RandomAccessNDImageViewIsMutableConcept { gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); - gil_function_requires>(); - gil_function_requires::iterator >>(); - gil_function_requires::iterator >>(); diff --git a/include/boost/gil/concepts/pixel_iterator.hpp b/include/boost/gil/concepts/pixel_iterator.hpp index a9a620dcec..f0c37a5972 100644 --- a/include/boost/gil/concepts/pixel_iterator.hpp +++ b/include/boost/gil/concepts/pixel_iterator.hpp @@ -43,48 +43,48 @@ template struct iterator_adaptor_get_base; // Isolating mutability to result in faster compile time namespace detail { -// Preconditions: TT Models boost_concepts::ForwardTraversalConcept -template -struct ForwardIteratorIsMutableConcept -{ - void constraints() - { - auto const tmp = *i; - *i++ = tmp; // require postincrement and assignment - } - TT i; -}; - -// Preconditions: TT Models boost::BidirectionalIteratorConcept -template -struct BidirectionalIteratorIsMutableConcept -{ - void constraints() - { - gil_function_requires< ForwardIteratorIsMutableConcept>(); - auto const tmp = *i; - *i-- = tmp; // require postdecrement and assignment - } - TT i; -}; - -// Preconditions: TT Models boost_concepts::RandomAccessTraversalConcept -template -struct RandomAccessIteratorIsMutableConcept -{ - void constraints() - { - gil_function_requires>(); - - typename std::iterator_traits::difference_type n = 0; - ignore_unused_variable_warning(n); - i[n] = *i; // require element access and assignment - } - TT i; -}; +//// Preconditions: TT Models ForwardIterator +//template +//struct ForwardIteratorIsMutableConcept +//{ +// void constraints() +// { +// auto const tmp = *i; +// *i++ = tmp; // require postincrement and assignment +// } +// TT i; +//}; +// +//// Preconditions: TT Models BidirectionalIterator +//template +//struct BidirectionalIteratorIsMutableConcept +//{ +// void constraints() +// { +// gil_function_requires< ForwardIteratorIsMutableConcept>(); +// auto const tmp = *i; +// *i-- = tmp; // require postdecrement and assignment +// } +// TT i; +//}; +// +//// Preconditions: TT Models RandomAccessIterator +//template +//struct RandomAccessIteratorIsMutableConcept +//{ +// void constraints() +// { +// gil_function_requires>(); +// +// typename std::iterator_traits::difference_type n = 0; +// ignore_unused_variable_warning(n); +// i[n] = *i; // require element access and assignment +// } +// TT i; +//}; // Iterators that can be used as the base of memory_based_step_iterator require some additional functions -// \tparam Iterator Models boost_concepts::RandomAccessTraversalConcept +// \tparam Iterator Models RandomAccessIterator template struct RandomAccessIteratorIsMemoryBasedConcept { @@ -109,7 +109,7 @@ struct PixelIteratorIsMutableConcept { void constraints() { - gil_function_requires>(); + gil_function_requires>(); using ref_t = typename std::remove_reference < @@ -155,7 +155,7 @@ struct HasTransposedTypeConcept /// /// \code /// concept PixelIteratorConcept -/// : boost_concepts::RandomAccessTraversalConcept, PixelBasedConcept +/// : RandomAccessIterator, PixelBasedConcept /// { /// where PixelValueConcept; /// typename const_iterator_type::type; @@ -169,7 +169,7 @@ struct PixelIteratorConcept { void constraints() { - gil_function_requires>(); + gil_function_requires>(); gil_function_requires>(); using value_type = typename std::iterator_traits::value_type; @@ -220,7 +220,7 @@ struct MutablePixelIteratorConcept /// \ingroup PixelIteratorConceptStepIterator /// \brief Concept of a random-access iterator that can be advanced in memory units (bytes or bits) /// \code -/// concept MemoryBasedIteratorConcept +/// concept MemoryBasedIteratorConcept /// { /// typename byte_to_memunit; where metafunction >; /// std::ptrdiff_t memunit_step(const Iterator&); @@ -235,7 +235,7 @@ struct MemoryBasedIteratorConcept { void constraints() { - gil_function_requires>(); + gil_function_requires>(); gil_function_requires>(); } }; @@ -245,7 +245,7 @@ struct MemoryBasedIteratorConcept /// /// Step iterators are iterators that have a set_step method /// \code -/// concept StepIteratorConcept +/// concept StepIteratorConcept /// { /// template /// void Iterator::set_step(D step); @@ -256,7 +256,7 @@ struct StepIteratorConcept { void constraints() { - gil_function_requires>(); + gil_function_requires>(); it.set_step(0); } Iterator it; @@ -275,7 +275,7 @@ struct MutableStepIteratorConcept void constraints() { gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); } }; @@ -295,17 +295,17 @@ struct MutableStepIteratorConcept /// The adaptee can be obtained from the iterator via the "base()" method. /// /// \code -/// concept IteratorAdaptorConcept +/// concept IteratorAdaptorConcept /// { /// where SameType::type, std::true_type>; /// /// typename iterator_adaptor_get_base; /// where Metafunction >; -/// where boost_concepts::ForwardTraversalConcept::type>; +/// where ForwardIterator::type>; /// /// typename another_iterator; /// typename iterator_adaptor_rebind::type; -/// where boost_concepts::ForwardTraversalConcept; +/// where ForwardIterator; /// where IteratorAdaptorConcept::type>; /// /// const iterator_adaptor_get_base::type& Iterator::base() const; @@ -316,10 +316,10 @@ struct IteratorAdaptorConcept { void constraints() { - gil_function_requires>(); + gil_function_requires>(); using base_t = typename iterator_adaptor_get_base::type; - gil_function_requires>(); + gil_function_requires>(); static_assert(is_iterator_adaptor::value, ""); using rebind_t = typename iterator_adaptor_rebind::type; @@ -342,7 +342,7 @@ struct MutableIteratorAdaptorConcept void constraints() { gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); } }; diff --git a/include/boost/gil/concepts/pixel_locator.hpp b/include/boost/gil/concepts/pixel_locator.hpp index d18f30dc30..72a680470e 100644 --- a/include/boost/gil/concepts/pixel_locator.hpp +++ b/include/boost/gil/concepts/pixel_locator.hpp @@ -136,8 +136,8 @@ struct RandomAccessNDLocatorConcept using first_it_type = typename Loc::template axis<0>::iterator; using last_it_type = typename Loc::template axis::iterator; - gil_function_requires>(); - gil_function_requires>(); + gil_function_requires>(); + gil_function_requires>(); // point_t must be an N-dimensional point, each dimension of which must // have the same type as difference_type of the corresponding iterator @@ -309,11 +309,11 @@ struct RandomAccessNDLocatorIsMutableConcept { void constraints() { - gil_function_requires::iterator >>(); - gil_function_requires::iterator >>(); diff --git a/include/boost/gil/planar_pixel_iterator.hpp b/include/boost/gil/planar_pixel_iterator.hpp index 5fedc02c59..a846d1fb1a 100644 --- a/include/boost/gil/planar_pixel_iterator.hpp +++ b/include/boost/gil/planar_pixel_iterator.hpp @@ -45,8 +45,8 @@ struct planar_pixel_iterator stl_interfaces::iterator_interface < planar_pixel_iterator, - pixel::value_type,layout>, std::random_access_iterator_tag, + pixel::value_type,layout>, planar_pixel_reference::reference, ColorSpace> const >, detail::homogeneous_color_base @@ -60,8 +60,8 @@ struct planar_pixel_iterator using parent_t = stl_interfaces::iterator_interface < planar_pixel_iterator, - pixel::value_type,layout>, std::random_access_iterator_tag, + pixel::value_type,layout>, planar_pixel_reference::reference, ColorSpace> const >;