STK++ 0.9.13
STK::hidden::MemChooser< 1, Type_ > Struct Template Reference

Specialization for fundamental types. More...

#include <STK_MemAllocator.h>

Static Public Member Functions

static Type_ * memcpy (Type_ *p, Type_ *q, size_t size)
 
static Type_ * memmove (Type_ *p, Type_ *q, size_t size)
 

Detailed Description

template<class Type_>
struct STK::hidden::MemChooser< 1, Type_ >

Specialization for fundamental types.

copy or move memory using standard C copy and move functions

Definition at line 139 of file STK_MemAllocator.h.

Member Function Documentation

◆ memcpy()

template<class Type_ >
static Type_ * STK::hidden::MemChooser< 1, Type_ >::memcpy ( Type_ *  p,
Type_ *  q,
size_t  size 
)
inlinestatic

Definition at line 141 of file STK_MemAllocator.h.

142 { return static_cast<Type_*>(std::memcpy( p , q, sizeof(Type_)*size));}

◆ memmove()

template<class Type_ >
static Type_ * STK::hidden::MemChooser< 1, Type_ >::memmove ( Type_ *  p,
Type_ *  q,
size_t  size 
)
inlinestatic

Definition at line 144 of file STK_MemAllocator.h.

145 { return static_cast<Type_*>(std::memmove( p, q, sizeof(Type_)*size));}

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