1 #include <sdbusplus/utility/tuple_to_array.hpp> 2 #include <cassert> 3 4 int main() 5 { 6 std::array<char, 3> a{'a', 'b', 'c'}; 7 auto t = std::make_tuple('a', 'b', 'c'); 8 9 assert(a == sdbusplus::utility::tuple_to_array(std::move(t))); 10 11 std::array<int, 4> b{1, 2, 3, 4}; 12 auto t2 = std::make_tuple(1, 2, 3, 4); 13 14 assert(b == sdbusplus::utility::tuple_to_array(std::move(t2))); 15 16 return 0; 17 } 18