1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/legacy/TelegraphKit/TGSharedPtrWrapper.mm
2015-10-01 19:19:52 +03:00

33 lines
384 B
Plaintext

#import "TGSharedPtrWrapper.h"
@implementation TGSharedPtrWrapper
{
std::tr1::shared_ptr<void> _ptr;
}
- (id)init
{
self = [super init];
if (self != nil)
{
}
return self;
}
- (void)dealloc
{
_ptr.reset();
}
- (void)setPtr:(std::tr1::shared_ptr<void> const &)ptr
{
_ptr = ptr;
}
- (std::tr1::shared_ptr<void> const &)ptr
{
return _ptr;
}
@end