#pragma once
#include<algorithm>namespacehaar_lib{template<typenameIter>voidrotate_right(Iterfirst,Iterlast,intd){std::rotate(first,last-d,last);}template<typenameIter>voidrotate_left(Iterfirst,Iterlast,intd){std::rotate(first,first+d,last);}}// namespace haar_lib