15 #ifndef CONCEALER__MEMBER_DETECTOR_HPP_
16 #define CONCEALER__MEMBER_DETECTOR_HPP_
18 #include <type_traits>
22 #define DEFINE_MEMBER_DETECTOR(IDENTIFIER) \
23 template <typename T, typename = void> \
24 struct DetectMember_##IDENTIFIER : public std::false_type \
28 template <typename T> \
29 struct DetectMember_##IDENTIFIER<T, std::void_t<decltype(std::declval<T>().IDENTIFIER)>> \
30 : public std::true_type \
40 #undef DEFINE_MEMBER_DETECTOR
42 #define DEFINE_STATIC_MEMBER_DETECTOR(IDENTIFIER) \
43 template <typename T, typename = void> \
44 struct DetectStaticMember_##IDENTIFIER : public std::false_type \
48 template <typename T> \
49 struct DetectStaticMember_##IDENTIFIER<T, std::void_t<decltype(T::IDENTIFIER)>> \
50 : public std::true_type \
80 #undef DEFINE_STATIC_MEMBER_DETECTOR
Definition: autoware_universe.hpp:40
DEFINE_MEMBER_DETECTOR(allow_goal_modification)
DEFINE_STATIC_MEMBER_DETECTOR(AVOIDANCE_BY_LC_LEFT)
auto distance(const geometry_msgs::Pose &pose1, const geometry_msgs::Pose &pose2)
Definition: detection_sensor.cpp:36