OpenCV  3.4.4
Open Source Computer Vision
Classes | Namespaces | Macros
traits.hpp File Reference
#include "opencv2/core/cvdef.h"

Classes

class  cv::DataDepth< _Tp >
 A helper class for cv::DataType. More...
 
class  cv::DataType< _Tp >
 Template "trait" class for OpenCV primitive data types. More...
 

Namespaces

 cv
 
 cv::traits
 

Macros

#define CV_CREATE_MEMBER_CHECK(X)
 

Macro Definition Documentation

§ CV_CREATE_MEMBER_CHECK

#define CV_CREATE_MEMBER_CHECK (   X)
Value:
template<typename T> class CheckMember_##X { \
struct Fallback { int X; }; \
struct Derived : T, Fallback { }; \
template<typename U, U> struct Check; \
typedef char CV_NO[1]; \
typedef char CV_YES[2]; \
template<typename U> static CV_NO & func(Check<int Fallback::*, &U::X> *); \
template<typename U> static CV_YES & func(...); \
public: \
typedef CheckMember_##X type; \
enum { value = sizeof(func<Derived>(0)) == sizeof(CV_YES) }; \
};