num::to_idx¶ Defined in header <core/types.hpp> template <class T> constexpr idx to_idx(T x) noexcept; Convert an integer to idx.