Condividi tramite


DontUseNewUseMake::operator new Operator

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at DontUseNewUseMake::operator new Operator.

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

Syntax

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.

Requirements

Header: implements.h

Namespace: Microsoft::WRL::Details

See Also

DontUseNewUseMake Class
Microsoft::WRL::Details Namespace