|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
7 #include <initializer_list>
13 #include "opentelemetry/common/attribute_value.h"
14 #include "opentelemetry/common/key_value_iterable.h"
15 #include "opentelemetry/nostd/function_ref.h"
16 #include "opentelemetry/nostd/span.h"
17 #include "opentelemetry/nostd/string_view.h"
18 #include "opentelemetry/nostd/type_traits.h"
19 #include "opentelemetry/nostd/utility.h"
20 #include "opentelemetry/version.h"
33 -> decltype(
take_key_value(std::begin(iterable)->first, std::begin(iterable)->second),
65 callback)
const noexcept
override
67 auto iter = std::begin(*container_);
69 for (; iter != last; ++iter)
71 if (!callback(iter->first, iter->second))
85 template <class T, nostd::enable_if_t<detail::is_key_value_iterable<T>::value> * =
nullptr>
98 MakeAttributes(std::initializer_list<std::pair<nostd::string_view, common::AttributeValue>>
102 attributes.
begin(), attributes.end()};
113 nostd::span<
const std::pair<nostd::string_view, common::AttributeValue>> attributes) noexcept
141 const ArgumentType &attributes) noexcept
bool_type< false > false_type
size_t size() const noexcept override
auto is_key_value_iterable_impl(T iterable) -> decltype(take_key_value(std::begin(iterable) ->first, std::begin(iterable) ->second), nostd::size(iterable), std::true_type
void take_key_value(nostd::string_view, common::AttributeValue)
bool ForEachKeyValue(nostd::function_ref< bool(nostd::string_view, common::AttributeValue)> callback) const noexcept override
T * begin() const noexcept
#define OPENTELEMETRY_BEGIN_NAMESPACE
KeyValueIterableView(const T &container) noexcept
#define OPENTELEMETRY_END_NAMESPACE
Supports internal iteration over a collection of key-value pairs.
bool_type< true > true_type
auto size(const C &c) noexcept(noexcept(c.size())) -> decltype(c.size())
Back port of std::size.
typename std::enable_if< B, T >::type enable_if_t
Back port of std::enable_if_t.
Container for key-value pairs that can transform every value in it to one of types listed in common::...
static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > MakeAttributes(std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept
Utility function to help to make a attribute view from initializer_list.
KeyValueIterableView< T > MakeKeyValueIterableView(const T &container) noexcept
constexpr const char * end
Back port of std::string_view to work with pre-cpp-17 compilers.