Twitch SDK (Internal)
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>
15 }
16 
17 template<typename T>
19 {
20 public:
21  void operator()(T* ptr) const
22  {
23  if (ptr != nullptr)
24  {
25  (void)ptr->Release();
26  }
27  }
28 };
Definition: comobjectdeleter.h:14
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
void operator()(T *ptr) const
Definition: comobjectdeleter.h:21