NVIDIA DeepStream SDK API Reference

9.2 Release
includes/opentelemetry/common/key_value_iterable_view.h File Reference

Go to the source code of this file.

Data Structures

struct  common::detail::is_key_value_iterable< T >
 
class  common::KeyValueIterableView< T >
 Container for key-value pairs that can transform every value in it to one of types listed in common::AttributeValue. More...
 

Namespaces

 common
 
 common::detail
 

Functions

void common::detail::take_key_value (nostd::string_view, common::AttributeValue)
 
template<class T >
auto common::detail::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
 
std::false_type common::detail::is_key_value_iterable_impl (...)
 
template<class T , nostd::enable_if_t< detail::is_key_value_iterable< T >::value > * = nullptr>
KeyValueIterableView< T > common::MakeKeyValueIterableView (const T &container) noexcept
 
static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > common::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. More...
 
static nostd::span< const std::pair< nostd::string_view, common::AttributeValue > > common::MakeAttributes (nostd::span< const std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept
 Utility function to help to make a attribute view from a span. More...
 
static const common::KeyValueIterable & common::MakeAttributes (const common::KeyValueIterable &attributes) noexcept
 Utility function to help to make a attribute view from a KeyValueIterable. More...
 
template<class ArgumentType , nostd::enable_if_t< common::detail::is_key_value_iterable< ArgumentType >::value > * = nullptr>
static common::KeyValueIterableView< ArgumentType > common::MakeAttributes (const ArgumentType &attributes) noexcept
 Utility function to help to make a attribute view from a key-value iterable object. More...