xref: /openbmc/telemetry/tests/src/utils/conv_container.hpp (revision 89cf7d7dafe2c073d781a40d59fa9c46cb344be6)
1 #pragma once
2 
3 #include "utils/transform.hpp"
4 
5 namespace utils
6 {
7 
8 template <class R, class Container>
9 auto convContainer(const Container& container)
10 {
11     return transform(container, [](const auto& item) -> R { return item; });
12 }
13 
14 } // namespace utils
15