File indexing completed on 2025-01-18 09:36:54
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_GIL_CONCEPTS_COLOR_HPP
0009 #define BOOST_GIL_CONCEPTS_COLOR_HPP
0010
0011 #include <boost/gil/concepts/concept_check.hpp>
0012
0013 #include <type_traits>
0014
0015 #if defined(BOOST_CLANG)
0016 #pragma clang diagnostic push
0017 #pragma clang diagnostic ignored "-Wunknown-pragmas"
0018 #pragma clang diagnostic ignored "-Wunused-local-typedefs"
0019 #endif
0020
0021 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900)
0022 #pragma GCC diagnostic push
0023 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
0024 #endif
0025
0026 namespace boost { namespace gil {
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 template <typename CS>
0037 struct ColorSpaceConcept
0038 {
0039 void constraints()
0040 {
0041
0042
0043
0044 }
0045 };
0046
0047
0048 template <typename CS1, typename CS2>
0049 struct color_spaces_are_compatible : std::is_same<CS1, CS2> {};
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 template <typename CS1, typename CS2>
0060 struct ColorSpacesCompatibleConcept
0061 {
0062 void constraints()
0063 {
0064 static_assert(color_spaces_are_compatible<CS1, CS2>::value, "");
0065 }
0066 };
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077 template <typename CM>
0078 struct ChannelMappingConcept
0079 {
0080 void constraints()
0081 {
0082
0083
0084
0085
0086 }
0087 };
0088
0089 }}
0090
0091 #if defined(BOOST_CLANG)
0092 #pragma clang diagnostic pop
0093 #endif
0094
0095 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900)
0096 #pragma GCC diagnostic pop
0097 #endif
0098
0099 #endif