sstring.h
/**
	 * Reverse a substring of the buffer in place.
	 */
Reverse a substring of the buffer in place.
Reverse a substring of the buffer in place .
void reverseWindow(size_t off, size_t len) {
		assert_leq(off, len_);
		assert_leq(off + len, len_);
		size_t mid = len >> 1;
		for(size_t i = 0; i < mid; i++) {
			T tmp = get(off+i);
			set(get(off+len-i-1), off+i);
			set(tmp, off+len-i-1);
		}
	}
void reverseWindow ( size_t off , size_t len ) { assert_leq ( off , len_ ) ; assert_leq ( off + len , len_ ) ; size_t mid = len >> 1 ; for ( size_t i = 0 ; i < mid ; i ++ ) { T tmp = get ( off + i ) ; set ( get ( off + len - i - 1 ) , off + i ) ; set ( tmp , off + len - i - 1 ) ; } }
Reverse a substring of the buffer in place.
Reverse a substring of the buffer in place .