Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MynahSA::SharedPtr< void > Class Template Reference

#include <spimpl.hpp>

Collaboration diagram for MynahSA::SharedPtr< void >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SharedPtr ()
 default constructor
 SharedPtr (const SharedPtr &p)
 copy constructor
 SharedPtr (Detail::SPBase *p)
virtual ~SharedPtr ()
void * get () const
 access to pointer
bool operator< (const SharedPtr &in) const
SharedPtroperator= (const SharedPtr &in)
bool operator== (const SharedPtr &in) const
bool operator== (void *ptr) const
 operator bool () const
template<class B>
 operator SharedPtr () const

Friends

template<class B, class A>
SharedPtr< B > StaticPtrCast (const SharedPtr< A > &src)

Detailed Description

template<>
class MynahSA::SharedPtr< void >

This is a specialization for void pointers. The difference between the generic SharedPtr and the void specialization is that void shared pointers have no template dereference operator. This means that you cannot perform the following: SharedPtr<void> spv( ... ); *spv; // error, attempt to derference a void pointer

Definition at line 245 of file spimpl.hpp.


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