2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-02 08:52:10 +00:00
Files
gil/test/image_view/image_view_concepts.cpp
Mateusz Łoskot b1eaa7ea90 Update image_view to model Collection concept (Trac 2222)
* Applies patch from John Femiani submitted via Trac
  https://svn.boost.org/trac10/ticket/2222 description:
  It would be convenient if GIL views modeled ReversibleCollection concept.
  In fact they almost do already. Without modeling this concept, it is
  hard to use an image view with boost::range algorithms.
* Add related image_view concepts for Collection, ForwardCollection,
  ReversibleCollection.
* Add tests for the new concepts.
* Add run-time tests for the new image_view methods.
2018-08-29 22:10:18 +02:00

24 lines
734 B
C++

//
// Copyright 2018 Mateusz Loskot <mateusz at loskot dot net>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/gil/gil_concept.hpp>
#include <boost/gil/image_view.hpp>
#include <boost/gil/typedefs.hpp>
namespace gil = boost::gil;
int main()
{
boost::function_requires<gil::ImageViewConcept<gil::gray8_view_t>>();
boost::function_requires<gil::CollectionImageViewConcept<gil::gray8_view_t>>();
boost::function_requires<gil::ForwardCollectionImageViewConcept<gil::gray8_view_t>>();
boost::function_requires<gil::ReversibleCollectionImageViewConcept<gil::gray8_view_t>>();
return 0;
}