需要实现
tuple_size<type>
返回长度tuple_element<index, type>
返回index
位置上的类型get<index>
返回index
位置上的值
#include <iostream>
#include <string>
#include <utility>
class person_t {
public:
template <typename T1, typename T2>
person_t(int id, T1 &&first, T2 &&last) : m_id(id), m_first(std::forward<T1>(first)), m_last(std::forward<T2>(last)) {
}
[[nodiscard]] constexpr int id() const noexcept {
return m_id