boost::gil::channels_are_compatible

Predicate metafunction returning whether two channels are compatible

Synopsis

template<
    typename T1,
    typename T2>
struct channels_are_compatible
    : std::is_same<channel_traits<T1>::value_type, channel_traits<T2>::value_type>

Description

Channels are considered compatible if their value types (ignoring constness and references) are the same.

Example:

static_assert(channels_are_compatible<uint8_t, const uint8_t&>::value, "");

Base Classes

Name

Description

std::is_same<channel_traits<T1>::value_type, channel_traits<T2>::value_type>

Created with MrDocs