Rerun C++ SDK
|
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. | |
Type trait utilities.
The defined traits acts as an extension to std defined type traits and are used as utilities across the SDK.
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.
|
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
.