order_by_key
 Interface
Finds an order corresponding to an entry within the sequence.
../../../../include/ext/pb_assoc/order_statistics_key.hpporder_statistics_key.hpp #link1Template parameters.
Public Types and Constants:
#link2Key-type definitions.
#link3Container definitions.
Public Methods:
#link4Operators.
Template parameters.
Parameter Description Default Value Cntnr Container type.
-
Key-type definitions.
Type Definition Description order_statistics_key_type typename #Cntnr3735929076Cntnr ::key_type Order-statistics key type.
underlying_key_type typename #order_statistics_key_type3735929828order_statistics_key_type ::key_type Underlying key type.
Container definitions.
Type Definition Description cntnr #Cntnr3735929076Cntnr Container type.
size_type typename #cntnr3735929108cntnr ::size_type Container's size type.
Operators.
Method Description inline #size_type3735929547size_type   
operator()
  (
const #Cntnr3735929076Cntnr  &r_c,
    
const #underlying_key_type3735929533underlying_key_type  &r_key) const Returns the order of a key within a sequence. For exapmle, if r_key is the smallest key in r_c, this method will return 0; if r_key is a key between the smallest and next key in r_c, this method will return 1; if r_key is a key larger than the largest key in r_c, this method will return the size of r_c.
