Spinning Topp Logo BlackTopp Studios
inc
Static Public Member Functions | List of all members
Mezzanine::CountedPtrCastImpl< OriginalPointer, OriginalPointer, CastNoneError > Class Template Reference

An implementation of the CountedPtrCast that always return the pointer passed reached via CastNoneError in the ReferenceCountTraits of the target class. More...

#include <countedptr.h>

Static Public Member Functions

static OriginalPointer Cast (OriginalPointer Original)
 This literally does nothing and returns the value passed, so simple all but the dumbest compilers will optimize it away at compile time. More...
 

Detailed Description

template<typename OriginalPointer>
class Mezzanine::CountedPtrCastImpl< OriginalPointer, OriginalPointer, CastNoneError >

An implementation of the CountedPtrCast that always return the pointer passed reached via CastNoneError in the ReferenceCountTraits of the target class.

Template Parameters
OriginalPointerThe type of the original pointer and return value must match exactly
Note
Since this requires both matching pointer types and CastNoneError to be present in the ReferenceCountTraits This should produce a compilation error when somethign is set wrong.

Definition at line 536 of file countedptr.h.

Member Function Documentation

template<typename OriginalPointer >
static OriginalPointer Mezzanine::CountedPtrCastImpl< OriginalPointer, OriginalPointer, CastNoneError >::Cast ( OriginalPointer  Original)
inlinestatic

This literally does nothing and returns the value passed, so simple all but the dumbest compilers will optimize it away at compile time.

Returns
Whatever was passed.

Definition at line 542 of file countedptr.h.


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