baudvine::RingBuf
STL-like ring buffer in C++11
|
The baudvine "project". More...
Classes | |
class | DequeRingBuf |
class | RingBuf |
An STL-like ring buffer with dynamic allocation and compile-time capacity limits. More... | |
Functions | |
template<typename Ptr , typename AllocTraits , std::size_t Capacity, typename OutputIt > | |
OutputIt | copy (const detail::ringbuf::Iterator< Ptr, AllocTraits, Capacity > &begin, const detail::ringbuf::Iterator< Ptr, AllocTraits, Capacity > &end, OutputIt out) |
Copy the elements in the range [begin , end ) to a destination range starting at out . More... | |
The baudvine "project".
OutputIt baudvine::copy | ( | const detail::ringbuf::Iterator< Ptr, AllocTraits, Capacity > & | begin, |
const detail::ringbuf::Iterator< Ptr, AllocTraits, Capacity > & | end, | ||
OutputIt | out | ||
) |
Copy the elements in the range [begin
, end
) to a destination range starting at out
.
Can be used like std::copy:
Ptr | The pointer type of the input iterator. |
AllocTraits | The allocator traits of the input iterator. |
Capacity | The capacity of the input iterator. |
begin | Start of the source range. |
end | End of the source range, one past the last element to copy. |
out | Start of the destination range. |