是否包含某个下标
bool include(int index) { return !isEmpty && index >= sectionBegin && index <= sectionEnd; }