Evo C++ Library v0.5.1
Public Types | Static Public Member Functions | List of all members
DataCopy< T, U > Struct Template Reference

#include <evo/impl/container.h>

Inheritance diagram for DataCopy< T, U >:
Inheritance graph
[legend]

Detailed Description

template<class T, class U = typename TypeId::Get<T>::Id>
struct evo::DataCopy< T, U >

Optimized data copy helpers.

Template Parameters
TData type to use
UInferred from T

Public Types

typedef RemoveConst< T >::Type Item
 Item type (const removed) More...
 
typedef AddConst< T >::Type & PassType
 Most efficient type for passing as parameter (const-reference or POD value). More...
 

Static Public Member Functions

static void set_default (T &val)
 Set value to default. More...
 
static void set_default_pod (T &val)
 Set new POD value to default value (0). More...
 

Member Typedef Documentation

◆ Item

typedef RemoveConst<T>::Type Item
inherited

Item type (const removed)

◆ PassType

typedef AddConst<T>::Type& PassType

Most efficient type for passing as parameter (const-reference or POD value).

Member Function Documentation

◆ set_default()

static void set_default ( T &  val)
inlinestatic

Set value to default.

  • For POD types this sets to 0
  • For all other types this copies from a default-constructed object
Parameters
valValue to initialize

◆ set_default_pod()

static void set_default_pod ( T &  val)
inlinestatic

Set new POD value to default value (0).

  • For POD types this sets to 0
  • For all other types this does nothing
Parameters
valValue to initialize

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