aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-07-27 14:28:32 -0500
committerGitHub2020-07-27 14:28:32 -0500
commit3dd1a5cae547991762f787b10a6f1b6586971912 (patch)
treeba244c9a74eb207aec2a7a1822a4acef900e4d07
parent82bb88cb7f4f44327639d1c1b64c49e75e7b81eb (diff)
Update template.cpp
-rw-r--r--Template/template.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Template/template.cpp b/Template/template.cpp
index 4c340cb..8170b32 100644
--- a/Template/template.cpp
+++ b/Template/template.cpp
@@ -29,8 +29,8 @@ typedef complex<ld> cd;
typedef pair<int, int> ii; typedef pair<ll, ll> pl; typedef pair<ld, ld> pd;
typedef vector<int> vi; typedef vector<ll> vl; typedef vector<ld> vd;
typedef vector<ii> vii; typedef vector<pl> vpl; typedef vector<pd> vpd;
-typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
-typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_multiset; // WARNING: May be broken
+template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
+template<typename T> using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>; // Use with caution
constexpr int INF = 1e9;
constexpr ll LINF = 1e18;
constexpr ll MOD = 1e9+7;