kyopro-lib

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

View on GitHub

:warning: Operations
(Mylib/Wrapper/rotate.cpp)

Operations

Requirements

Notes

Problems

References

Code

#pragma once
#include <algorithm>

namespace haar_lib {
  template <typename Iter>
  void rotate_right(Iter first, Iter last, int d) {
    std::rotate(first, last - d, last);
  }

  template <typename Iter>
  void rotate_left(Iter first, Iter last, int d) {
    std::rotate(first, first + d, last);
  }
}  // namespace haar_lib
#line 2 "Mylib/Wrapper/rotate.cpp"
#include <algorithm>

namespace haar_lib {
  template <typename Iter>
  void rotate_right(Iter first, Iter last, int d) {
    std::rotate(first, last - d, last);
  }

  template <typename Iter>
  void rotate_left(Iter first, Iter last, int d) {
    std::rotate(first, first + d, last);
  }
}  // namespace haar_lib
Back to top page