static constexpr auto get_type() { if constexpr (maxLength < 0xFFFE) { return type<uint16_t>; } else { return type<uint32_t>; } } using CellIdx = decltype(get_type())::type;
这里一个c++标委会成员,其介绍了比较多的c++20