Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKUtils.hpp
1#pragma once
2
3#ifndef SCANBOTSDK_UTILS_H
4#define SCANBOTSDK_UTILS_H
5
6#include <ScanbotSDKTypes.h>
7
8#include <type_traits>
9
10template <class T>
11inline constexpr bool IsSdkValueType = false;
12
13template <>
14inline constexpr bool IsSdkValueType<scanbotsdk_point_t> = true;
15
16template <>
17inline constexpr bool IsSdkValueType<scanbotsdk_pointf_t> = true;
18
19template <>
20inline constexpr bool IsSdkValueType<scanbotsdk_rect_t> = true;
21
22template <>
23inline constexpr bool IsSdkValueType<scanbotsdk_rectf_t> = true;
24
25template <class T>
26concept ValueType =
27 std::is_integral_v<T> || std::is_floating_point_v<T> || std::is_enum_v<T> || IsSdkValueType<T>;
28
29#endif /* SCANBOTSDK_UTILS_H */
The Scanbot SDK C API primitive types.
Definition ScanbotSDKUtils.hpp:26