Open in app

Sign in

Write

Sign in

Hanz
Hanz

8 Followers

Home

About

Hanz

Hanz

SIMD with Python

SIMD (Single Instruction Multiple Data) is a technique used to perform the same operation on multiple data elements at the same time, and…

Mar 18, 2023
Mar 18, 2023
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 16: Make const member functions thread safe

什麼導致了const function NOT thread safe?

Feb 13, 2021
Feb 13, 2021
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 15:Provide access to raw resources in resource-managing classes

我們期待在一個完美的設計中,資源管理類別可以提供我們對資源所需要的所有操作,我們可以不關心/管理被封裝的原始資源。然而現實中許多開發者依然需要直接接觸原始資源。

Nov 29, 2020
Nov 29, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 14:Declare functions noexcept if they won’t emit exceptoins

當C++發展至C++ 11後,對例外狀況有了更嚴謹的規範,所以我們應該盡可能的使用它,所以當我們知道某個函數不會拋出例外時,那就應該加上noexpect,這節將會介紹其中的原因。

Nov 23, 2020
Nov 23, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 13:Use objects to manage resources

除了class、template之外,C與C++明顯的區別是資源的管理方式,我們可以在C++使用C語言的方式手動管理資源,然而,我們應該在C++使用更聰明更簡單的作法,本節將介紹C++資源管理的方式。

Oct 24, 2020
Oct 24, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 12: Declare overriding functions override

這節顧名思義的就是在介紹override的使用技巧

Oct 18, 2020
Oct 18, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 11:Handle assignment to self in operator=

這節介紹了自我賦值會發生的情況以及正確的處理方法

Oct 10, 2020
Oct 10, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 10: Prefer scoped enums to unscoped enums

本節將介紹列舉enum的正確打開方式

Oct 4, 2020
Oct 4, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 9: Prefer alias declarations to typedefs

C++11 後我們常使用smart…

Oct 4, 2020
Oct 4, 2020
Hanz

Hanz

[Effective Modern C++]導讀系列 — Item 8: Prefer nullptr to 0 and NULL

本章節將介紹在宣告指針變數時使用nullptr取代0以及NULL的好處。

Sep 22, 2020
Sep 22, 2020
Hanz

Hanz

8 Followers

https://hanz-li.github.io/home

Help

Status

About

Careers

Press

Blog

Privacy

Terms

Text to speech

Teams