19 #ifndef RCLCPP__SCOPE_EXIT_HPP_ 20 #define RCLCPP__SCOPE_EXIT_HPP_ 29 template<
typename Callable>
33 : callable_(callable) {}
40 template<
typename Callable>
49 #define RCLCPP_SCOPE_EXIT(code) \ 50 auto RCLCPP_STRING_JOIN(scope_exit_, __LINE__) = rclcpp::make_scope_exit([&]() {code; }) 52 #endif // RCLCPP__SCOPE_EXIT_HPP_ ~ScopeExit()
Definition: scope_exit.hpp:34
Definition: allocator_common.hpp:24
ScopeExit(Callable callable)
Definition: scope_exit.hpp:32
Definition: scope_exit.hpp:30
ScopeExit< Callable > make_scope_exit(Callable callable)
Definition: scope_exit.hpp:42