proxygen
folly::detail::growth_policy_wrapper< Policy > Struct Template Reference

#include <sorted_vector_types.h>

Inheritance diagram for folly::detail::growth_policy_wrapper< Policy >:

Public Member Functions

template<class Container , class Iterator >
Iterator increase_capacity (Container &c, Iterator desired_insertion)
 

Detailed Description

template<class Policy>
struct folly::detail::growth_policy_wrapper< Policy >

Definition at line 98 of file sorted_vector_types.h.

Member Function Documentation

template<class Policy>
template<class Container , class Iterator >
Iterator folly::detail::growth_policy_wrapper< Policy >::increase_capacity ( Container &  c,
Iterator  desired_insertion 
)
inline

Definition at line 100 of file sorted_vector_types.h.

100  {
101  typedef typename Container::difference_type diff_t;
102  diff_t d = desired_insertion - c.begin();
103  Policy::increase_capacity(c);
104  return c.begin() + d;
105  }
char c

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