Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sort 2d vector c++

std::sort(vector1.begin(),
          vector1.end(),
          [] (const std::vector<double> &a, const std::vector<double> &b)
          {
              return a[3] < b[3];
          });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #vector
ADD COMMENT
Topic
Name
6+4 =