OTB  9.0.0
Orfeo Toolbox
Classes | Functions
otb::mpl::internals Namespace Reference

Classes

struct  NumberOfComponents
 
struct  NumberOfComponents< itk::VariableLengthVector< RealType > >
 
struct  NumberOfComponents< std::complex< T > >
 
struct  NumberOfComponents< T const >
 

Functions

template<typename... T>
constexpr std::false_type is_array_f (...)
 
template<typename T , unsigned int N>
constexpr std::true_type is_array_f (itk::FixedArray< T, N > const *)
 

Function Documentation

◆ is_array_f() [1/2]

template<typename... T>
constexpr std::false_type otb::mpl::internals::is_array_f (   ...)
constexpr

SFINAE part that says: "ignore anything else".

◆ is_array_f() [2/2]

template<typename T , unsigned int N>
constexpr std::true_type otb::mpl::internals::is_array_f ( itk::FixedArray< T, N > const *  )
constexpr

SFINAE workaround to match types that inherit from itk::FixedArray. As we cannot use std::is_base_of<RGBAPixel<T>, itk::FixedArray<T, N> when trying to see if RGBAPixel inherits from itk::FixedArray without knowing the N parameter beforehand, here is this workaround.

We take the parameter by pointer to avoid possible conversions.