- vector[meta header]
- std[meta namespace]
- function template[meta id-type]
namespace std {
template <class T, class Allocator>
bool operator>(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
}vectorにおいて、左辺が右辺より大きいかを判定する。
y < x
線形時間
#include <iostream>
#include <vector>
int main ()
{
std::vector<int> v1 = {4, 5, 6};
std::vector<int> v2 = {1, 2, 3};
std::cout << std::boolalpha;
std::cout << (v1 > v2) << std::endl;
}true