unique-ptr

标签

Cards List
#unique-ptr

Creating a fake agile wrapper that is technically agile but is not useful outside its home apartment, part 5

The Old New Thing (Raymond Chen) ↗ · 2026-08-07 缓存

Raymond Chen explains how to use std::unique_ptr to manage a registration cookie in a fake agile wrapper, discussing integer-to-pointer round-tripping and the wil::unique_any alternative.

0 人收藏 0 人点赞
#unique-ptr

在C++/WinRT中创建Windows Runtime委托的敏捷版本,第8部分

The Old New Thing (Raymond Chen) ↗ · 2026-07-29 缓存

本文讨论了在C++/WinRT中创建敏捷委托时修复异常安全性问题,解决了未指定lambda捕获构造顺序导致的引用泄漏。

0 人收藏 0 人点赞
#unique-ptr

在C++/WinRT中创建敏捷版的Windows Runtime委托,第6部分

The Old New Thing (Raymond Chen) ↗ · 2026-07-27 缓存

系列文章第6部分:在C++/WinRT中创建敏捷的Windows Runtime委托,修复std::unique_ptr自定义删除器构造函数可能引发的异常问题。

0 人收藏 0 人点赞
← 返回首页

提交意见反馈