garlic::back_inserter_iterator< LayerType > Class Template Reference

A generic bask inserter iterator for all garlic Layer types. More...

#include <layer.h>

Detailed Description

template<GARLIC_REF LayerType>
class garlic::back_inserter_iterator< LayerType >

A generic bask inserter iterator for all garlic Layer types.

This is similar to std::back_inserter_iterator but it works on garlic Layer types. Usage is the same exact way as the STL counterpart.

Template Parameters
LayerTypeany type that conforms to the RefLayer concept.
doc.set_list();
int values[] = {1, 2, 3};
std::copy(std::begin(values), std::end(values), garlic::back_inserter(doc));

The documentation for this class was generated from the following file:
garlic::CloveDocument
GenericCloveDocument< CAllocator > CloveDocument
A clove document (value) conforming to garlic::RefLayer.
Definition: clove.h:502