CAtlFileMapping Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see CAtlFileMapping Class on docs.microsoft.com. This class represents a memory-mapped file, adding a cast operator to the methods of CAtlFileMappingBase.

System_CAPS_ICON_important.jpg Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

template <typename T = char>  
class CAtlFileMapping : public CAtlFileMappingBase

Parameters

T
The type of data used for the cast operator.

Public Operators

NameDescription
CAtlFileMapping::operator T*Allows implicit conversion of CAtlFileMapping objects to T*.

This class adds a single cast operator to allow implicit conversion of CAtlFileMapping objects to T*. Other members are supplied by the base class, CAtlFileMappingBase.

CAtlFileMappingBase

CAtlFileMapping

Header: atlfile.h

Allows implicit conversion of CAtlFileMapping objects to T*.

operator T*() const throw();

Return Value

Returns a T* pointer to the start of the memory-mapped file.

Remarks

Calls CAtlFileMappingBase::GetData and reinterprets the returned pointer as a T* where T is the type used as the template parameter of this class.

CAtlFileMappingBase Class
Class Overview

Show: