#ifndef MBUOY_VIEW_HPP #define MBUOY_VIEW_HPP namespace mbuoy { template class view_t { public: consteval view_t() { auto ptr = data; (Objs.init(ptr), ...); } void render() { (Objs.render(), ...); } private: unsigned char data[(0 + ... + Objs.size())] = {}; }; template constinit auto view = view_t(); } // namespace mbuoy #endif // MBUOY_VIEW_HPP