]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/test/extension/toolbox/is_homogeneous.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / gil / test / extension / toolbox / is_homogeneous.cpp
1 //
2 // Copyright 2013 Christian Henning
3 //
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
7 //
8 #include <boost/gil.hpp>
9 #include <boost/gil/extension/toolbox/metafunctions/is_homogeneous.hpp>
10
11 #include <boost/test/unit_test.hpp>
12
13 using namespace boost;
14 using namespace gil;
15
16 BOOST_AUTO_TEST_SUITE( toolbox_tests )
17
18 BOOST_AUTO_TEST_CASE( is_homogeneous_test )
19 {
20 static_assert(is_homogeneous<rgb8_pixel_t>::value, "");
21
22 static_assert(is_homogeneous<cmyk16c_planar_ref_t>::value, "");
23
24 using image_t = bit_aligned_image1_type< 4, gray_layout_t>::type;
25 static_assert(is_homogeneous<image_t::view_t::reference>::value, "");
26 }
27
28 BOOST_AUTO_TEST_SUITE_END()