struct GRIDCHKRSL { long m_lUnitId; //单元序号 long m_lSelOrder; //选择序号 int m_lCodeId; //规范号 bool operator < (const GRIDCHKRSL &m)const { return m_lSelOrder < m.m_lSelOrder; } }; inline bool less_second2(const GRIDCHKRSL* m1, const GRIDCHKRSL* m2) { return m1->m_lUnitId < m2->m_lUnitId; } typedef std::vector<GRIDCHKRSL*> GRIDCHKRSLList;