VLink  2.0.0
A high-performance communication middleware
vlink::Traits::RemoveSharedPtr< T, bool > 模板结构体 参考

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

#include <traits.h>

vlink::Traits::RemoveSharedPtr< T, bool > 的协作图:

Public 类型

using Type = T
 Resolved type after optional shared_ptr removal. 更多...
 

详细描述

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.

模板参数
TSource type.

成员类型定义说明

◆ Type

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

Resolved type after optional shared_ptr removal.


该结构体的文档由以下文件生成: