Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::traits Namespace Reference

Type trait utilities. More...

Typedefs

template<typename T >
using value_type_of_t = typename std::remove_reference_t< T >::value_type
 Gets the value/element type of a container.
 

Variables

template<typename T >
constexpr bool is_iterable_v = details::is_iterable<T>::value
 True if a given type is iterable, meaning there is a begin & end implementation.
 

Detailed Description

Type trait utilities.

The defined traits acts as an extension to std defined type traits and are used as utilities across the SDK.

Typedef Documentation

◆ value_type_of_t

template<typename T >
using rerun::traits::value_type_of_t = typedef typename std::remove_reference_t<T>::value_type

Gets the value/element type of a container.

This works for all types that stick with the std convention of having a value_type member type. Fails to compile if the type does not have a value_type member type - this can be used for SFINAE checks.

Variable Documentation

◆ is_iterable_v

template<typename T >
constexpr bool rerun::traits::is_iterable_v = details::is_iterable<T>::value
constexpr

True if a given type is iterable, meaning there is a begin & end implementation.

Makes no restrictions on the type returned by begin/end.