15 #ifndef OPENSCENARIO_INTERPRETER__UTILITY__PRINT_HPP_
16 #define OPENSCENARIO_INTERPRETER__UTILITY__PRINT_HPP_
22 #include <type_traits>
26 inline namespace utility
29 auto print_to(std::ostream & os,
const T & value)
30 -> std::enable_if_t<concepts::HasStreamOutputOperator<T>::value, std::ostream &>
36 auto print_to(std::ostream & os,
const T & iterable) -> std::enable_if_t<
37 not concepts::HasStreamOutputOperator<T>::value and type_traits::Iterable<T>::value,
41 const auto * separator =
"";
42 for (
const auto & value : iterable) {
43 os << std::exchange(separator,
", ");
51 for (
auto iter = std::begin(
xs); iter != std::end(
xs); ++iter) {
52 os << std::get<0>(*iter);
auto print_to(std::ostream &os, const T &value) -> std::enable_if_t< concepts::HasStreamOutputOperator< T >::value, std::ostream & >
Definition: print.hpp:29
auto print_keys_to
Definition: print.hpp:49
Definition: escape_sequence.hpp:22
auto distance(const geometry_msgs::Pose &pose1, const geometry_msgs::Pose &pose2)
Definition: detection_sensor.cpp:34
Definition: junit5.hpp:25