[Updated]↵
Hello everyone,↵
↵
do you know if there is any data structure (like std::set) that allows querying on 2 parameters and adding elements? The use case is I have a many lists of (a[i], b[i]). I want perform a query with parameter MAXB that returns the pair with the maximum value by a[i] but the corresponding b[i] value is less than or equal to MAXB. I can also perform an update by adding a pair to any list.↵
↵
Do you know any? Thank you.↵
Hello everyone,↵
↵
do you know if there is any data structure (like std::set) that allows querying on 2 parameters and adding elements? The use case is I have a many lists of (a[i], b[i]). I want perform a query with parameter MAXB that returns the pair with the maximum value by a[i] but the corresponding b[i] value is less than or equal to MAXB. I can also perform an update by adding a pair to any list.↵
↵
Do you know any? Thank you.↵