comp-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub luzhiled1333/comp-library

:heavy_check_mark: src/geometry/Z2/utility/next-idx.hpp

Depends on

Required by

Verified with

Code

#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
Back to top page