proxygen
folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::value_compare Struct Reference

#include <sorted_vector_types.h>

Inheritance diagram for folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::value_compare:
folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::EBO

Public Member Functions

bool operator() (const value_type &a, const value_type &b) const
 

Protected Member Functions

 value_compare (const Compare &c)
 

Friends

class sorted_vector_map
 

Detailed Description

template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
struct folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::value_compare

Definition at line 624 of file sorted_vector_types.h.

Constructor & Destructor Documentation

template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::value_compare::value_compare ( const Compare &  c)
inlineexplicitprotected

Definition at line 631 of file sorted_vector_types.h.

631 : Compare(c) {}
char c

Member Function Documentation

template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::value_compare::operator() ( const value_type a,
const value_type b 
) const
inline

Definition at line 625 of file sorted_vector_types.h.

625  {
626  return Compare::operator()(a.first, b.first);
627  }
char b
char a

Friends And Related Function Documentation

template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
friend class sorted_vector_map
friend

Definition at line 630 of file sorted_vector_types.h.


The documentation for this struct was generated from the following file: