VLink  2.0.0
A high-performance communication middleware
vlink::Traits::RemoveSharedPtr< T, bool > Struct Template Reference

Removes a single std::shared_ptr wrapper from T, leaving non-pointer types unchanged. More...

#include <traits.h>

Collaboration diagram for vlink::Traits::RemoveSharedPtr< T, bool >:

Public Types

using Type = T
 Resolved type after optional shared_ptr removal. More...
 

Detailed Description

template<typename T, bool = IsSharedPtr<T>::value>
struct vlink::Traits::RemoveSharedPtr< T, bool >

Removes a single std::shared_ptr wrapper from T, leaving non-pointer types unchanged.

When T is a std::shared_ptr, Type is the contained element type; otherwise Type is T verbatim.

Template Parameters
TSource type.

Member Typedef Documentation

◆ Type

template<typename T , bool = IsSharedPtr<T>::value>
using vlink::Traits::RemoveSharedPtr< T, bool >::Type = T

Resolved type after optional shared_ptr removal.


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