Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

use lower bound in pair vector

int position = lower_bound(v.begin(),v.end(),{first, -inf})-v.begin();
 
PREVIOUS NEXT
Tagged: #bound #pair #vector
ADD COMMENT
Topic
Name
2+5 =