Twitch SDK (Internal)
modules
core
core_win32
include
twitchsdk
core
comobjectdeleter.h
Go to the documentation of this file.
1
/********************************************************************************************
2
* Twitch Broadcasting SDK
3
*
4
* This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5
* may not be copied or used except in accordance with the terms of that agreement
6
* Copyright (c) 2012-2016 Twitch Interactive, Inc.
7
*********************************************************************************************/
8
9
#pragma once
10
11
namespace
ttv
12
{
13
template
<
typename
T>
14
class
COMObjectDeleter
;
15
}
16
17
template
<
typename
T>
18
class
ttv::COMObjectDeleter
19
{
20
public
:
21
void
operator()
(T* ptr)
const
22
{
23
if
(ptr !=
nullptr
)
24
{
25
(void)ptr->Release();
26
}
27
}
28
};
ttv::COMObjectDeleter
Definition:
comobjectdeleter.h:14
ttv
JSON (JavaScript Object Notation).
Definition:
adsapi.h:16
ttv::COMObjectDeleter::operator()
void operator()(T *ptr) const
Definition:
comobjectdeleter.h:21
Generated by
1.8.13