Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
shared_ptr.h File Reference
#include "lib/alignment.h"
#include "lib/sysdep/rtl.h"
Include dependency graph for shared_ptr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DummyDeleter
 
struct  ArrayDeleter
 
struct  AlignedDeleter
 

Functions

template<class T >
std::shared_ptr< TDummySharedPtr (T *ptr)
 
std::shared_ptr< u8Allocate (size_t size)
 
template<class T >
static Status AllocateAligned (std::shared_ptr< T > &p, size_t size, size_t alignment=cacheLineSize)
 

Function Documentation

◆ Allocate()

std::shared_ptr< u8 > Allocate ( size_t  size)

◆ AllocateAligned()

template<class T >
static Status AllocateAligned ( std::shared_ptr< T > &  p,
size_t  size,
size_t  alignment = cacheLineSize 
)
inlinestatic

◆ DummySharedPtr()

template<class T >
std::shared_ptr< T > DummySharedPtr ( T ptr)
inline