|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
10 #include "opentelemetry/nostd/span.h"
11 #include "opentelemetry/version.h"
30 : first_{first}, second_{second}
40 template <
class Callback>
42 noexcept(noexcept(std::declval<Callback>()(std::declval<T &>())))
44 for (
auto &value : first_)
51 for (
auto &value : second_)
64 size_t size() const noexcept {
return first_.
size() + second_.
size(); }
79 if (first_.
size() >= n)
CircularBufferRange Take(size_t n) const noexcept
Return a subrange taken from the start of this range.
#define OPENTELEMETRY_BEGIN_NAMESPACE
T * data() const noexcept
CircularBufferRange(nostd::span< T > first) noexcept
size_t size() const noexcept
#define OPENTELEMETRY_END_NAMESPACE
bool empty() const noexcept
CircularBufferRange(nostd::span< T > first, nostd::span< T > second) noexcept
bool ForEach(Callback callback) const noexcept(noexcept(std::declval< Callback >()(std::declval< T & >())))
Iterate over the elements in the range.
CircularBufferRange() noexcept=default
size_t size() const noexcept
bool empty() const noexcept
A non-owning view into a range of elements in a circular buffer.