]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/test/extension/toolbox/is_homogeneous.cpp
2 // Copyright 2013 Christian Henning
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
8 #include <boost/gil.hpp>
9 #include <boost/gil/extension/toolbox/metafunctions/is_homogeneous.hpp>
11 #include <boost/test/unit_test.hpp>
13 using namespace boost
;
16 BOOST_AUTO_TEST_SUITE( toolbox_tests
)
18 BOOST_AUTO_TEST_CASE( is_homogeneous_test
)
20 static_assert(is_homogeneous
<rgb8_pixel_t
>::value
, "");
22 static_assert(is_homogeneous
<cmyk16c_planar_ref_t
>::value
, "");
24 using image_t
= bit_aligned_image1_type
< 4, gray_layout_t
>::type
;
25 static_assert(is_homogeneous
<image_t::view_t::reference
>::value
, "");
28 BOOST_AUTO_TEST_SUITE_END()