This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub Luzhiled/comp-geometry
#include "src/real-geometry/utility/next-idx.hpp"
#pragma once #include "src/real-geometry/common/size-alias.hpp" namespace geometry { inline usize next_idx(usize idx, usize size) { return idx + 1 == size ? 0 : idx + 1; } }
#line 2 "src/real-geometry/utility/next-idx.hpp" #line 2 "src/real-geometry/common/size-alias.hpp" #include <cstddef> namespace geometry { using isize = std::ptrdiff_t; using usize = std::size_t; } #line 4 "src/real-geometry/utility/next-idx.hpp" namespace geometry { inline usize next_idx(usize idx, usize size) { return idx + 1 == size ? 0 : idx + 1; } }