Skip to content
Snippets Groups Projects
Commit 53ca0b4d authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add armarx::aron::is_aron_primitive_type_v metafunction

parent 25b48814
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,18 @@ namespace armarx
RUN_ARON_MACRO(Double, double, DOUBLE) \
RUN_ARON_MACRO(Bool, bool, BOOL)
namespace armarx::aron
{
template<class T>
static constexpr bool is_aron_primitive_type_v =
std::is_same_v<T, int > ||
std::is_same_v<T, long > ||
std::is_same_v<T, float > ||
std::is_same_v<T, double > ||
std::is_same_v<T, bool > ||
std::is_same_v<T, std::string>;
}
// All combined
#define HANDLE_ALL_ARON_TYPES \
HANDLE_CONTAINER_TYPES \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment