BratokHR

Untitled

Jan 31st, 2021 (edited)
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.     bool SortConvertTest( Pixel lhs, Pixel rhs )
  2.     {
  3.         return ( lhs.it < rhs.it );
  4.     }
  5. ...
  6.  
  7. //- Восстановление основного массива (развертывание)
  8.     for (int i = 0; i < convertEx.size(); i++)
  9.         convertTest.push_back(convertEx[i]);
  10.  
  11.     for (int i = 0; i < convertDp.size(); i++)
  12.         convertTest.push_back(convertDp[i]);
  13.  
  14.     std::sort(convertTest.begin(), convertTest.end(), SortConvertTest);
Add Comment
Please, Sign In to add comment