1 // 2 // Copyright 2013 Christian Henning 3 // Copyright 2020 Mateusz Loskot <mateusz@loskot.net> 4 // 5 // Distributed under the Boost Software License, Version 1.0 6 // See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt 8 // 9 #include <boost/gil.hpp> 10 #include <boost/gil/extension/toolbox/metafunctions/is_homogeneous.hpp> 11 12 namespace gil = boost::gil; 13 test_is_homogeneous()14void test_is_homogeneous() 15 { 16 static_assert(gil::is_homogeneous<gil::rgb8_pixel_t>::value, ""); 17 static_assert(gil::is_homogeneous<gil::cmyk16c_planar_ref_t>::value, ""); 18 19 using image_t = gil::bit_aligned_image1_type< 4, gil::gray_layout_t>::type; 20 static_assert(gil::is_homogeneous<image_t::view_t::reference>::value, ""); 21 } 22 main()23int main() 24 { 25 test_is_homogeneous(); 26 } 27