ObjectConstructor< T, false > Class Template Reference

#include <apibase.h>

Static Public Member Functions

static __attribute__ ((always_inline)) ResultOk< void > Copy(T &dst
 
template<typename U >
static __attribute__ ((always_inline)) ResultOk< void > AssignCopy(T &dst
 
template<typename SRC >
static __attribute__ ((always_inline)) T *Alloc(void *mem
 

Public Attributes

static const T & src
 
return OK
 
static const U & src
 
static SRC && src
 

Member Function Documentation

◆ __attribute__() [1/3]

static __attribute__ ( (always_inline)  ) &
static

Constructs an object using new (dst) T(src), cannot fail.

Parameters
[out]dstCopied object will be placed here.
[in]srcObject to be copied.
Returns
OK on success.

◆ __attribute__() [2/3]

static __attribute__ ( (always_inline)  ) &
static

Copy assignment, cannot fail.

Parameters
[out]dstCopy will be placed here (dst must have already been constructed)
[in]srcObject to be copied.
Returns
Always true.

◆ __attribute__() [3/3]

static __attribute__ ( (always_inline)  )
static

needed for MAXON_IMPLEMENTATION

Parameters
[out]memObject will be constructed here (can be nullptr).
[in]srcObject to be moved or copied.

Member Data Documentation

◆ src [1/3]

const T& src

◆ OK

return OK

◆ src [2/3]

const U& src

◆ src [3/3]

SRC&& src