Img2Num C++ (Internal Developer Docs)  dev
API Documentation
Pixel.h
1 #ifndef PIXEL_H
2 #define PIXEL_H
3 
4 #include <type_traits>
5 
6 namespace ImageLib {
7 template <typename NumberT>
8 struct Pixel {
9  static_assert(std::is_arithmetic<NumberT>::value,
10  "Pixel<NumberT>: NumberT must be a numeric type");
11 
12  using value_type = NumberT;
13 
14  ~Pixel() = default;
15 };
16 } // namespace ImageLib
17 
18 #endif // PIXEL_H