1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <tuple>
int main() {
std::tuple<int, double, std::string> tuple1(1, 2.5, "A");
std::tuple<int, double, std::string> tuple2(1, 3.0, "B");
if (tuple1 < tuple2) {
std::cout << "tuple1 is less than tuple2" << std::endl;
}
return 0;
}
Back to std_tuple