PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
Loading...
Searching...
No Matches
visit.hpp
1
/****************************************************************************
2
* Copyright (c) 2025 PX4 Development Team.
3
* SPDX-License-Identifier: BSD-3-Clause
4
****************************************************************************/
5
6
#pragma once
7
8
namespace
px4_ros2::util {
9
// helper type for std::visit
10
template
<
class
... Ts>
11
struct
Overloaded
: Ts... {
12
using
Ts::operator()...;
13
};
14
// explicit deduction guide (not needed as of C++20)
15
template
<
class
... Ts>
16
Overloaded
(Ts...) ->
Overloaded
<Ts...>;
17
}
// namespace px4_ros2::util
px4_ros2::util::Overloaded
Definition
visit.hpp:11
px4_ros2_cpp
include
px4_ros2
utils
visit.hpp
Generated by
1.9.8