Ambil perhatian
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba log masuk atau menukar direktori.
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Note
The Active Template Library (ATL) continues to be supported. However, we're no longer adding features or updating the documentation.
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.
Syntax
template <typename T = char>
class CAtlFileMapping : public CAtlFileMappingBase
Parameters
T
The type of data used for the cast operator.
Members
Public Operators
| Name | Description |
|---|---|
| CAtlFileMapping::operator T* | Allows implicit conversion of CAtlFileMapping objects to T*. |
Remarks
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.
Inheritance Hierarchy
CAtlFileMapping
Requirements
Header: atlfile.h
CAtlFileMapping::operator T*
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.