GCC Code Coverage Report


Directory: src/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: -% 0 / 0 / 0
Functions: -% 0 / 0 / 0
Branches: -% 0 / 0 / 0

ds/order_statistic.hpp
Line Branch Exec Source
1 #pragma once
2
3 #include <ext/pb_ds/assoc_container.hpp>
4
5 namespace wala {
6
7 template <typename K, typename V, typename Comp = std::less<K>>
8 using order_statistic_map = __gnu_pbds::tree<
9 K, V, Comp,
10 __gnu_pbds::rb_tree_tag,
11 __gnu_pbds::tree_order_statistics_node_update
12 >;
13
14 template <typename K, typename Comp = std::less<K>>
15 using order_statistic_set = order_statistic_map<K, __gnu_pbds::null_type, Comp>;
16
17 // Supports
18 // auto iterator = order_statistic_set().find_by_order(idx); // (0-indexed)
19 // int num_strictly_smaller = order_statistic_set().order_of_key(key);
20
21 } // namespace wala
22