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

#include <Iterator.h>

Public Member Functions

 EmplaceFront (Container &c)
 
template<typename... Args>
void emplace (Args &&...args)
 

Public Attributes

Container * container
 

Detailed Description

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

Emplace implementation class for folly::front_emplace_iterator.

Definition at line 189 of file Iterator.h.

Constructor & Destructor Documentation

template<typename Container >
folly::detail::EmplaceFront< Container >::EmplaceFront ( Container &  c)
inlineexplicit

Definition at line 190 of file Iterator.h.

References testing::Args().

190 : container(std::addressof(c)) {}
char c

Member Function Documentation

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

Definition at line 192 of file Iterator.h.

192  {
193  container->emplace_front(std::forward<Args>(args)...);
194  }

Member Data Documentation

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

Definition at line 195 of file Iterator.h.


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