File indexing completed on 2025-12-16 09:51:51
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_GIL_EXTENSION_TOOLBOX_METAFUNCTIONS_IS_BIT_ALIGNED_TYPE_HPP
0009 #define BOOST_GIL_EXTENSION_TOOLBOX_METAFUNCTIONS_IS_BIT_ALIGNED_TYPE_HPP
0010
0011 #include <boost/gil/bit_aligned_pixel_reference.hpp>
0012
0013 #include <type_traits>
0014
0015 namespace boost{ namespace gil {
0016
0017
0018
0019
0020 template< typename PixelRef >
0021 struct is_bit_aligned : std::false_type {};
0022
0023 template <typename B, typename C, typename L, bool M>
0024 struct is_bit_aligned<bit_aligned_pixel_reference<B, C, L, M>> : std::true_type {};
0025
0026 template <typename B, typename C, typename L, bool M>
0027 struct is_bit_aligned<bit_aligned_pixel_reference<B, C, L, M> const> : std::true_type {};
0028
0029 template <typename B, typename C, typename L>
0030 struct is_bit_aligned<packed_pixel<B, C, L>> : std::true_type {};
0031
0032 template <typename B, typename C, typename L>
0033 struct is_bit_aligned<packed_pixel<B, C, L> const> : std::true_type {};
0034
0035 }}
0036
0037 #endif