lower_bound in set<node> with some struct as template
Difference between en1 and en2, changed 41 character(s)

struct node{  
   int i, j, val;
  
};
  

set<node> A;
  
I insert many nodes in A. Now I want to get the lower_bound for some val = k. How do I use A.lower_bound() in this case?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English rachitiitr 2016-05-31 22:26:05 2
en3 English rachitiitr 2016-05-31 22:25:38 33 Tiny change: '; \n\nset A; \nI ' -node\
en2 English rachitiitr 2016-05-31 22:24:47 41
en1 English rachitiitr 2016-05-31 22:23:52 199 Initial revision (published)