遍历操作模板

for (std::list<char*>::iterator iterator_condition_columns = \
              condition_columns.begin();;){
    begin_offset += sprintf(condition_begin_limit_rows + begin_offset, "%s asc", \
                                                *iterator_condition_columns);
    end_offset += sprintf(condition_end_limit_rows + end_offset, "%s desc", \
                                                *iterator_condition_columns);
    if ((++iterator_condition_columns) == condition_columns.end()){
      return TRUE;
    }
    begin_offset += sprintf(condition_begin_limit_rows + begin_offset, ",");
    end_offset += sprintf(condition_end_limit_rows + end_offset, ",");
  }

 

posted @ 2018-09-18 11:06  友哥  阅读(289)  评论(0编辑  收藏  举报