Website Summary Files Commits Branches @commit @diff @stats
path: root / Utils / k_2_SI / task1 / Source.cpp
blob: 5020fa9940ce6957cf4a89232bbe4936e740f41d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include "PairOfOptionals/PairOfOptionals.hpp"

int main()
{
	PairOfOptionals<int, char> p1(5, 's');
	p1.removeSecond();

	p1.setFirst(1);

	PairOfOptionals<int, char> p2;
	std::cout << (p1 == p2) << std::endl;

	p2.setFirst(1);

	std::cout << (p1 == p2);
}