ForwardingDataPtr Struct Reference Data Types

#include <datatypebase.h>

详细描述

ForwardingDataPtr contains type info and a pointer to an arbitrary generic object plus the information if the object shall be moved or not. ForwardingDataPtr is typically used as parameter type of a generic function which accepts any type of object and moves or copies the object to some other location.

公共成员函数

  ForwardingDataPtr ()
MAXON_IMPLICIT   ForwardingDataPtr (const ConstDataPtr &ptr)
MAXON_IMPLICIT   ForwardingDataPtr ( MoveDataPtr &&ptr)
template<typename T , typename = typename std::enable_if<!(STD_IS_REPLACEMENT(same, typename std::decay<T>::type, ConstDataPtr) || STD_IS_REPLACEMENT(same, typename std::decay<T>::type, MoveDataPtr))>::type>
  ForwardingDataPtr (T &&value)
Result < 数据 GetData ()

Public Attributes

ConstDataPtr   data
Bool   move

构造函数 & 析构函数文档编制

◆  ForwardingDataPtr() [1/4]

ForwardingDataPtr ( )

◆  ForwardingDataPtr() [2/4]

MAXON_IMPLICIT ForwardingDataPtr ( const ConstDataPtr ptr )

◆  ForwardingDataPtr() [3/4]

MAXON_IMPLICIT ForwardingDataPtr ( MoveDataPtr &&  ptr )

◆  ForwardingDataPtr() [4/4]

ForwardingDataPtr ( T &&  value )
explicit

成员函数文档编制

◆  GetData()

Result < 数据 > GetData ( )

Member Data Documentation

◆  data

ConstDataPtr data

◆  move

Bool move