Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 661 Bytes

File metadata and controls

50 lines (37 loc) · 661 Bytes

operator>=

  • stack[meta header]
  • std[meta namespace]
  • function template[meta id-type]
namespace std {
  template <class T, class Container>
  bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y);
}

概要

stack において、左辺が右辺以上かを判定する。

戻り値

x.c >= y.c

#include <iostream>
#include <stack>

int main()
{
  std::stack<int> x;
  x.push(2);
  x.push(7);
  x.push(1);

  std::stack<int> y;
  y.push(3);
  y.push(1);
  y.push(4);

  std::cout << std::boolalpha << (x >= y) << std::endl;
}
  • push[link push.md]

出力

false

参照