Skip to content
Snippets Groups Projects
Commit 09b47b0b authored by ffiori's avatar ffiori Committed by GitHub
Browse files

comments

parent 2f397747
Branches
Tags tap-2016
No related merge requests found
......@@ -3,9 +3,14 @@
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
//o bien usar así:
typedef tree<int,null_type,less<int>,//key, mapped type, comparator. Se puede usar como map<a,b> poniendo tree<a,b,...
rb_tree_tag,tree_order_statistics_node_update> set_t;
int main(){
ordered_set<int> s;
s.insert(1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment