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