Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.78 KB

dontusenewusemake-class.md

File metadata and controls

67 lines (44 loc) · 1.78 KB
description title ms.date ms.topic f1_keywords helpviewer_keywords ms.assetid
Learn more about: DontUseNewUseMake Class
DontUseNewUseMake Class
09/21/2018
reference
implements/Microsoft::WRL::Details::DontUseNewUseMake
implements/Microsoft::WRL::Details::DontUseNewUseMake::operator new
Microsoft::WRL::Details::DontUseNewUseMake class
Microsoft::WRL::Details::DontUseNewUseMake::operator new operator
8b38d07b-fc14-4cea-afb9-4c1a7dde0093

DontUseNewUseMake Class

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

class DontUseNewUseMake;

Remarks

Prevents using operator new in RuntimeClass. Consequently, you must use the Make function instead.

Members

Public Operators

Name Description
DontUseNewUseMake::operator new Overloads operator new and prevents it from being used in RuntimeClass.

Inheritance Hierarchy

DontUseNewUseMake

Requirements

Header: implements.h

Namespace: Microsoft::WRL::Details

DontUseNewUseMake::operator new

Supports the WRL infrastructure and is not intended to be used directly from your code.

void* operator new(
   size_t,
   _In_ void* placement
);

Parameters

__unnamed0
An unnamed parameter that specifies the number of bytes of memory to allocate.

placement
The type to be allocated.

Return Value

Provides a way to pass additional arguments if you overload operator new.

Remarks

Overloads operator new and prevents it from being used in RuntimeClass.