Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
AstarteDeviceSdk::AstarteDataAllowedType Concept Reference

Restricts the allowed types for instances of an Astarte data class. More...

#include <data.hpp>

Concept definition

template<typename T>
requires std::is_same_v<T, int32_t> || std::is_same_v<T, int64_t> || std::is_same_v<T, double> ||
std::is_same_v<T, bool> || std::is_same_v<T, std::string> ||
std::is_same_v<T, std::string_view> || std::is_same_v<T, std::vector<uint8_t>> ||
std::is_same_v<T, std::chrono::system_clock::time_point> ||
std::is_same_v<T, std::vector<int32_t>> || std::is_same_v<T, std::vector<int64_t>> ||
std::is_same_v<T, std::vector<double>> || std::is_same_v<T, std::vector<bool>> ||
std::is_same_v<T, std::vector<std::string>> ||
std::is_same_v<T, std::vector<std::vector<uint8_t>>> ||
std::is_same_v<T, std::vector<std::chrono::system_clock::time_point>>;
}
Restricts the allowed types for instances of an Astarte data class.
Definition data.hpp:27

Detailed Description

Restricts the allowed types for instances of an Astarte data class.