Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:51:51

0001 //
0002 // Copyright 2012 Christian Henning, Andreas Pokorny, Lubomir Bourdev
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
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 /// is_bit_aligned metafunctions
0018 /// \brief Determines whether the given type is bit_aligned.
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 }} // namespace boost::gil
0036 
0037 #endif