原创 c++ 智能指針學習、使用

原文:https://www.fluentcpp.com/2018/12/25/free-ebook-smart-pointers/ 有一件事會迅速使您的c++代碼變得混亂,並阻礙其可讀性,那就是內存管理。如果做得不好,這可能會把

原创 practical c++ metaprogramming(翻譯及學習)

前言 感興趣的推薦看原文吧,我這裏只是學習記錄,價值一般,就是做個記錄 https://www.researchgate.net/publication/323994820_Practical_C_Metaprogramming    

原创 windows path

windows path原文概述path 規範化確認目錄舊版設備應用當前目錄規範化分隔符評估相對組件修剪字符跳過格式化DOS to NT ,一個路徑的旅程“Real" Path一個路徑的生命週期 原文 https://blogs.

原创 應用層內存管理及調試的學習-----(1)

學習之前應該先搞清楚如何調試進程當前的內存信息艱難的起步(No symbols for ntdll. Cannot continue.)解決之路:進程初始時的地址空間信息的查看定製的dll 和 exe ,用於研究dll 模塊的堆的

原创 wpa學習(1)

這裏寫自定義目錄標題 我的學習源,請直接參見:https://randomascii.wordpress.com/2015/09/24/etw-central/ wpa 是什麼? Windows Performance Anal

原创 應用層內存管理及調試的學習-----(3)

既然我們想做比較靠譜的性能測試,首先要知道如何準確測量一段代碼的執行時間 此時,寄出了自己的windows 核心編程–7.6 有對於線程執行時間的獲取的描述 #include <windows.h> #include <asser

原创 c++ smart_ptr(vs2019 c++ 17) learn 2

#include <memory> #include <iostream> #include <cstdio> #pragma optimize("",off) char* g_temp_test_valid = nullptr; st

原创 應用層內存管理及調試的學習-----(2)

0:000> !heap Heap Address NT/Segment Heap 210000 NT Heap 10

原创 c++ smart_ptr(vs2019 c++ 17) learn 1

#include <memory> #include <iostream> #include <cstdio> #pragma optimize("",off) char* g_temp_test_valid = nullptr; st

原创 應用層內存管理及調試的學習-----(4)

突然發現一個更好的內容: https://www.oracle.com/technetwork/cn/articles/servers-storage-admin/1557798_ZHS https://blogs.oracle.

原创 std::function 學習筆記(4)

#pragma once namespace MyFunctionNameSpace {// size in pointers of std::function and std::any (roughly 3 pointers larg

原创 std::shared_ptr 中deleter 的內存模型、調用邏輯

template <class _Ux, class _Dx, enable_if_t<conjunction_v<is_move_constructible<_Dx>, _Can_call_functio

原创 std::unique_ptr 閱讀筆記

demo: #include<memory> #include<windows.h> const wchar_t* const FILE_PATH = LR"(D:\temp\test.txt)"; #pragma optim

原创 c++17 std::unique_ptr 閱讀筆記(預告)

template <class _Ty1, class _Ty2, bool = is_empty_v<_Ty1> && !is_final_v<_Ty1>> class _Compressed_pair final : privat