Fast DDS  Version 3.1.2
Fast DDS
Loading...
Searching...
No Matches
object_traits< T > Struct Template Reference

#include <type_traits.hpp>

Public Types

using ref_type = typename ::std::shared_ptr< T >
 
using weak_ref_type = typename ::std::weak_ptr< T >
 

Static Public Member Functions

template<typename _Tp , typename = typename std::enable_if<std::is_base_of<T, _Tp>::value>::type>
static std::shared_ptr< _Tp > narrow (ref_type obj)
 

Member Typedef Documentation

◆ ref_type

template<typename T >
using ref_type = typename ::std::shared_ptr<T>

◆ weak_ref_type

template<typename T >
using weak_ref_type = typename ::std::weak_ptr<T>

Member Function Documentation

◆ narrow()

template<typename T >
template<typename _Tp , typename = typename std::enable_if<std::is_base_of<T, _Tp>::value>::type>
static std::shared_ptr< _Tp > narrow ( ref_type  obj)
inlinestatic

The documentation for this struct was generated from the following file: