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

#include <Iterator.h>

Public Member Functions

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

Public Attributes

Container * container
 

Detailed Description

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

Emplace implementation class for folly::back_emplace_iterator.

Definition at line 202 of file Iterator.h.

Constructor & Destructor Documentation

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

Definition at line 203 of file Iterator.h.

References testing::Args().

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

Member Function Documentation

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

Definition at line 205 of file Iterator.h.

205  {
206  container->emplace_back(std::forward<Args>(args)...);
207  }

Member Data Documentation

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

Definition at line 208 of file Iterator.h.


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