This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*! | |
@header CFArray | |
CFArray implements an ordered, compact container of pointer-sized | |
values. Values are accessed via integer keys (indices), from the | |
range 0 to N-1, where N is the number of values in the array when | |
an operation is performed. The array is said to be "compact" because | |
deleted or inserted values do not leave a gap in the key space -- | |
the values with higher-numbered indices have their indices | |
renumbered lower (or higher, in the case of insertion) so that the | |
set of valid indices is always in the integer range [0, N-1]. Thus, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto _Folder = Windows::Storage::ApplicationData::Current->LocalFolder; | |
auto _Option = Windows::Storage::CreationCollisionOption::ReplaceExisting; | |
// create file async | |
_Folder->CreateFileAsync("MyFileName", _Option); | |
// create file sync by wrapping in task - then pattern | |
IAsyncOperation<StorageFile^>^ fileOp = _Folder->CreateFileAsync("MyFileName2", _Option); | |
auto deviceEnumTask = create_task(fileOp); | |
deviceEnumTask.then([](StorageFile^ myFile) |