#include <iostream>
#include <stack>
#include <ctime>
#include <random>
#include <Windows.h>
using namespace std;
stack<int> operator +(stack<int> left, int n) {
left.push(n);
return left;
};
stack<int> operator --(stack<int> left, int n) {
left.pop();
return left;
};
class stackcheck
{
private:
int _size = 0;
public:
stackcheck(int size_of_stack) {
_size = size_of_stack;
}
int size()
{
return _size;
}
operator bool() const
{
if (_size == 0)
return false;
return true;
}
};
int main()
{
stack<int> st;
st.push(2);
st.push(4);
st=st + 5;
cout <<
st.top()<<endl;
stackcheck ms(st.size());
if (ms)
cout << "Not empty" << endl;
else
cout << "Empty" << endl;
}