2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
compile_time_member_check.h File Reference
#include <type_traits>

Go to the source code of this file.

Macros

#define HAS_MEMBER(X)
 Helper function generator to detect if a namespace has a member defined.
 

Macro Definition Documentation

◆ HAS_MEMBER

#define HAS_MEMBER (   X)
Value:
template <typename T, typename = void> \
struct has_##X : std::false_type {}; \
template <typename T> \
struct has_##X<T, decltype((void)T::X, void())> : std::true_type {};

Helper function generator to detect if a namespace has a member defined.

Parameters
XName of member to detect