#ifndef POLYGON_STEP_HPP #define POLYGON_STEP_HPP #include "config.hpp" struct Step{ size_t histo[max_len+1]; size_t t,oldh,newh; Step(size_t t,size_t oldh,size_t newh,size_t n); Step(Step* s,size_t newh,size_t n); size_t num() const; }; inline Step::Step(Step* s,size_t _newh,size_t n){ memcpy(histo,s->histo,(1+s->t)*sizeof(size_t)); t=s->t+1; histo[t]=n; oldh=s->newh; //cout<<"Step histo : "<