export module bedrock.foundation:tuple; import bedrock.numbers; namespace br { export template class Tuple; export template class Tuple { public: Tuple(T1 t1, T2 t2) : m_t1(t1), m_t2(t2) {} template auto get() const -> auto { if constexpr (I == 0) { return m_t1; } if constexpr (I == 1) { return m_t2; } } #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpadded" const T1 m_t1; const T2 m_t2; #pragma clang diagnostic pop }; } // namespace br