From 0ab75cddde1c959fe434c6554f1d3e1ed2719780 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Sun, 2 Oct 2016 18:49:19 +0200 Subject: Optical improvements of the datastructures section. --- datastructures/stlTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datastructures/stlTree.cpp') diff --git a/datastructures/stlTree.cpp b/datastructures/stlTree.cpp index 73472a7..bdbeae3 100644 --- a/datastructures/stlTree.cpp +++ b/datastructures/stlTree.cpp @@ -7,6 +7,6 @@ int main() { Tree X; for (int i = 1; i <= 16; i <<= 1) X.insert(i); // {1, 2, 4, 8, 16} cout << *X.find_by_order(3) << endl; // => 8 - cout << X.order_of_key(10) << endl; // => 4 = successor of 10 = min i such that X[i] >= 10 + cout << X.order_of_key(10) << endl; // => 4 = Nachfolger von 10 = minimales i, sodass X[i] >= 10 return 0; } \ No newline at end of file -- cgit v1.2.3