Share via


Mutex::operator= 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 Mutex::operator= Operator.

Assigns (moves) the specified Mutex object to the current Mutex object.

Syntax

Mutex& operator=(  
   _Inout_ Mutex&& h  
);  

Parameters

h
An rvalue-reference to a Mutex object.

Return Value

A reference to the current Mutex object.

Remarks

For more information, see the Move Semantics section of Rvalue Reference Declarator: &&.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

Mutex Class