- queue[meta header]
- std[meta namespace]
- function template[meta id-type]
namespace std {
template <class T, class Container>
bool operator==(const queue<T, Container>& x, const queue<T, Container>& y);
}queueの等値比較を行う
x.c == y.c#include <iostream>
#include <queue>
int main ()
{
std::queue<int> x;
x.push(1);
x.push(2);
x.push(3);
std::queue<int> y;
y.push(1);
y.push(2);
y.push(3);
std::cout << std::boolalpha << (x == y) << std::endl;
}- x == y[color ff0000]
- push[link push.md]
true