IRC_SERVER
By @hyunjunk (hyunjun2372@gmail.com)
Loading...
Searching...
No Matches
SharedPtr.hpp File Reference

Go to the source code of this file.

Classes

struct  IRCCore::detail::ControlBlock< T >
 Do not use this class directly. More...
 
class  IRCCore::SharedPtr< T >
 Shared pointer custom implementation for C++98 standard. More...
 

Namespaces

namespace  IRCCore
 
namespace  IRCCore::detail
 

Functions

MakeSharedGroup

Function to create a shared pointer with a new object.

Parameters
TType of the object to be created. (Not support Array type. e.g. int[], char[])
...Arguments to be passed to the constructor of the object. (up to 4 arguments)
Returns
A new shared pointer to the object.

Support only up to 4 arguments because variadic template is not available in c++98. Example usage:

Shared pointer custom implementation for C++98 standard.
Definition SharedPtr.hpp:164
SharedPtr< T > MakeShared()
Definition SharedPtr.hpp:86

SharedPtr

template<typename T >
SharedPtr< T > IRCCore::MakeShared ()
 
template<typename T , typename A1 >
SharedPtr< T > IRCCore::MakeShared (A1 a1)
 
template<typename T , typename A1 , typename A2 >
SharedPtr< T > IRCCore::MakeShared (A1 a1, A2 a2)
 
template<typename T , typename A1 , typename A2 , typename A3 >
SharedPtr< T > IRCCore::MakeShared (A1 a1, A2 a2, A3 a3)
 
template<typename T , typename A1 , typename A2 , typename A3 , typename A4 >
SharedPtr< T > IRCCore::MakeShared (A1 a1, A2 a2, A3 a3, A4 a4)