Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/gil/extension/toolbox/metafunctions/is_similar.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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_SIMILAR_HPP
0009 #define BOOST_GIL_EXTENSION_TOOLBOX_METAFUNCTIONS_IS_SIMILAR_HPP
0010 
0011 #include <boost/gil/channel.hpp>
0012 
0013 #include <type_traits>
0014 
0015 namespace boost{ namespace gil {
0016 
0017 /// is_similar metafunctions
0018 /// \brief Determines if two pixel types are similar.
0019 
0020 template<typename A, typename B>
0021 struct is_similar : std::false_type {};
0022 
0023 template<typename A>
0024 struct is_similar<A, A> : std::true_type {};
0025 
0026 template<typename B,int I, int S, bool M, int I2>
0027 struct is_similar
0028     <
0029         packed_channel_reference<B,  I, S, M>,
0030         packed_channel_reference<B, I2, S, M>
0031     > : std::true_type {};
0032 
0033 }} // namespace boost::gil
0034 
0035 #endif