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

Strips std::shared_ptr to obtain the underlying element type. More...

#include <traits.h>

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

Public Types

using Type = T

Detailed Description

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

Strips std::shared_ptr to obtain the underlying element type.

When T is a std::shared_ptr, RemoveSharedPtr<T>::Type is the contained element type. Otherwise Type is T itself.

Template Parameters
TThe type from which to remove the shared_ptr wrapper.

Member Typedef Documentation

◆ Type

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

The type without std::shared_ptr.


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