Comparator that orders elements by their key.

Synopsis

Declared in <folly/container/sorted_vector_types.h>

struct value_compare;

Member Functions

Name

Description

operator()

Returns true if element a is ordered before element b by key.

Protected Member Functions

Name

Description

value_compare [constructor]

Constructs a value_compare wrapping the given key comparator.

Friends

Name

Description

folly::sorted_vector_map

A sorted_vector_map is similar to a sorted_vector_set but stores <key,value> pairs instead of single elements.

Created with MrDocs