| description | Learn more about: CAtlFileMapping Class | ||
|---|---|---|---|
| title | CAtlFileMapping Class | ||
| ms.date | 11/04/2016 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 899fc058-e05e-48b5-aca9-340403bb9e26 |
This class represents a memory-mapped file, adding a cast operator to the methods of CAtlFileMappingBase.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
template <typename T = char>
class CAtlFileMapping : public CAtlFileMappingBaseT
The type of data used for the cast operator.
| Name | Description |
|---|---|
| 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.
CAtlFileMapping
Header: atlfile.h
Allows implicit conversion of CAtlFileMapping objects to T*.
operator T*() const throw();Returns a T* pointer to the start of the memory-mapped file.
Calls CAtlFileMappingBase::GetData and reinterprets the returned pointer as a T* where T is the type used as the template parameter of this class.