summaryrefslogtreecommitdiff
path: root/datastructures/test/persistent.cpp
blob: d98569b3c4b21387d6e573ef3df425cdacbd0f78 (plain)
1
2
3
4
5
6
7
8
9
10
#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);
}