ObjectConstructor< T, hasCopyFrom > Class Template Reference Data Types
#include <apibase.h>
公共成员函数 |
|
if ( dst ->CopyFrom( src )== FAILED ) |
静态公共成员函数 |
|
static Result < void > | 拷贝 (T & dst , const T & src ) |
template<typename U > | |
static | __attribute__ ((always_inline)) Result < void > AssignCopy(T & dst |
static | __attribute__ ((always_inline)) T *Alloc(void *mem |
template<typename SRC > | |
static | __attribute__ ((always_inline)) T *Alloc(void *mem |
Public Attributes |
|
static const U & | src |
static const T & | src |
T * | dst |
return | dst |
static SRC && | src |
|
static |
Constructs an object using CopyFrom() (like new (dst) T(src) but with error check) If copy construction fails the object will be automatically destructed, dst will point to uninitialized memory like before the call.
[out] | dst | Copied object will be placed here. |
[in] | src | Object to be copied. |
|
Copy assignment using CopyFrom()
[out] | dst | Copy will be placed here (dst must have already been constructed) |
[in] | src | Object to be moved. |
|
static |
if | ( | dst -> |
CopyFrom
src =
= FAILED
|
) |
|
static |
const U& src |
const T& src |
T* dst |
return dst |
SRC&& src |