summaryrefslogtreecommitdiff
path: root/datastructures/test/persistent.cpp
blob: 5e5f864b758551dfc3f4377ce802cbfde9d8f3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#define all(X) begin(X), end(X)
#include "../persistent.cpp"

int main() {
	int time = 0;
	persistent<int> p(time, 0);
	p.set(1);
	int t1 = time;
	p.set(2);
	assert(p.get(t1) == 1);
}