boost::capy::buffer_length

Return the number of buffer elements in a sequence.

Synopsis

Declared in <boost/capy/buffers.hpp>

template<ConstBufferSequence CB>
std::size_t
buffer_length(CB const& bs);

Description

Counts the number of individual buffer objects, not bytes. For a single buffer, returns 1. For a range, returns the distance from begin to end.

Return Value

the number of buffer elements in a sequence.

See Also

buffer_size

Created with MrDocs