|
ipcq 0.12.0
|
Adapts either LegacyOutputIterator or Iterator type (e.g.
More...
#include <adapter.hpp>
Public Types | |
| using | ValueType = typename IteratorTraits<Iterator>::value_type |
Public Member Functions | |
| constexpr | OutputIteratorAdapter (Iterator iter) |
| constexpr void | operator() (ValueType const &value) |
Assigns value to *iterator and then increments the iterator. | |
Public Attributes | |
| Iterator | iterator |
Adapts either LegacyOutputIterator or Iterator type (e.g.
std::back_insert_iterator or std::iterator) to use in BasicReader::Read and BasicReader::Read.
Example that does in-place assignment:
std::vector<Topic> buffer(5); reader.Read(ipcq::OutputIteratorAdapter(std::begin(buffer)), 5, 5s);
Container::push_back. Definition at line 52 of file adapter.hpp.
| using ipcq::OutputIteratorAdapter< Iterator >::ValueType = typename IteratorTraits<Iterator>::value_type |
Definition at line 53 of file adapter.hpp.
|
inlineconstexpr |
Definition at line 55 of file adapter.hpp.
|
inlineconstexpr |
Assigns value to *iterator and then increments the iterator.
Definition at line 64 of file adapter.hpp.
| Iterator ipcq::OutputIteratorAdapter< Iterator >::iterator |
Definition at line 67 of file adapter.hpp.