proxygen
folly::detail::EmplaceHint< Container > Struct Template Reference

#include <Iterator.h>

Public Member Functions

 EmplaceHint (Container &c, typename Container::iterator i)
 
template<typename... Args>
void emplace (Args &&...args)
 

Public Attributes

Container * container
 
Container::iterator iter
 

Detailed Description

template<typename Container>
struct folly::detail::EmplaceHint< Container >

Emplace implementation class for folly::hint_emplace_iterator.

Definition at line 173 of file Iterator.h.

Constructor & Destructor Documentation

template<typename Container >
folly::detail::EmplaceHint< Container >::EmplaceHint ( Container &  c,
typename Container::iterator  i 
)
inline

Definition at line 174 of file Iterator.h.

References testing::Args().

175  : container(std::addressof(c)), iter(std::move(i)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
Container::iterator iter
Definition: Iterator.h:182
char c

Member Function Documentation

template<typename Container >
template<typename... Args>
void folly::detail::EmplaceHint< Container >::emplace ( Args &&...  args)
inline

Definition at line 177 of file Iterator.h.

177  {
178  iter = container->emplace_hint(iter, std::forward<Args>(args)...);
179  ++iter;
180  }
Container::iterator iter
Definition: Iterator.h:182

Member Data Documentation

template<typename Container >
Container* folly::detail::EmplaceHint< Container >::container

Definition at line 181 of file Iterator.h.

template<typename Container >
Container::iterator folly::detail::EmplaceHint< Container >::iter

Definition at line 182 of file Iterator.h.


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