PinnedSamiraยทOct 23๐๐ฎ๐ฐ๐ต๐ถ๐ป๐ด ๐๐ถ๐๐ต ๐๐๐ฑ::๐๐ฒ๐ฎ๐ธ_๐ฝ๐๐ฟ ๐ถ๐ป ๐++๐ฏ๐๐ฎ๐ฐ๐ต๐ถ๐ป๐ด ๐๐ถ๐๐ต ๐๐๐ฑ::๐๐ฒ๐ฎ๐ธ_๐ฝ๐๐ฟ ๐ถ๐ป ๐++ There are a few potential use cases for std::weak_ptr: โ Caching โ Observer listsโฆ
PinnedSamiraยทSep 28๐ฏFalse sharing in multithreading and how to avoid it in C++ (Part 1):โ Cache memory โ Cache organization โ Cache ping-pong โ C++17 std::hardware_destructive_interference_size ๐นCache memory Because of theโฆ
PinnedSamiraยทMay 29๐๐ฅ๐ข๐ ๐ง๐ฆ๐๐ง๐ญ in modern C++: what C++17 fixed for ๐จ๐ฏ๐๐ซ-๐๐ฅ๐ข๐ ๐ง๐๐ allocation๐ฏ๐๐ฅ๐ข๐ ๐ง๐ฆ๐๐ง๐ญ in modern C++: what C++17 fixed for ๐จ๐ฏ๐๐ซ-๐๐ฅ๐ข๐ ๐ง๐๐ allocation
PinnedSamiraยทMay 3, 2025Optimizing std::unique_ptr with ๐๐๐๐ and C++20 [[๐ง๐จ_๐ฎ๐ง๐ข๐ช๐ฎ๐_๐๐๐๐ซ๐๐ฌ๐ฌ]]โEver wondered why ๐๐๐ฉ๐ญ๐ฎ๐ซ๐๐ฅ๐๐ฌ๐ฌ ๐ฅ๐๐ฆ๐๐๐๐ฌ are preferred over functions when used as custom deleters? Youโd say,โโฆ
PinnedSamiraยทDec 27, 2024๐๐๐ญ๐ ๐๐๐๐ and ๐๐๐๐ ๐๐จ๐ง๐๐ข๐ญ๐ข๐จ๐ง๐ฌ๐ฏIn this post, Iโll cover key ๐๐จ๐ง๐๐ฎ๐ซ๐ซ๐๐ง๐๐ฒ concepts related to multithreaded programming in C++, which are also commonly askedโฆ
SamiraยทJun 19๐๐๐ฑ::๐ผ๐ฝ๐๐ถ๐ผ๐ป๐ฎ๐น<๐ง> is ๐ก๐ข๐ง just a value member of type T plus a Boolean flag.โ๐๐๐ฑ::๐ผ๐ฝ๐๐ถ๐ผ๐ป๐ฎ๐น<๐ง> is ๐ก๐ข๐ง just a value member of type T plus a Boolean flag.
SamiraยทOct 4, 2025๐๐๐ซ๐๐๐๐ญ ๐๐๐ญ๐ฎ๐ซ๐ง๐ข๐ง๐ Using ๐๐๐๐ฅ๐ญ๐ฒ๐ฉ๐(๐๐ฎ๐ญ๐จ) in C++ Part2๐Part #2: ๐๐๐ซ๐๐๐๐ญ ๐๐๐ญ๐ฎ๐ซ๐ง๐ข๐ง๐ Using ๐๐๐๐ฅ๐ญ๐ฒ๐ฉ๐(๐๐ฎ๐ญ๐จ)
SamiraยทOct 4, 2025๐๐๐ซ๐๐๐๐ญ ๐๐๐ญ๐ฎ๐ซ๐ง๐ข๐ง๐ Using ๐๐๐๐ฅ๐ญ๐ฒ๐ฉ๐(๐๐ฎ๐ญ๐จ) in C++ Part1๐๐๐๐ซ๐ญ #1:ย In this and future posts, Iโll cover some key concepts essential for understanding and writing generic programming (i.eโฆ
SamiraยทAug 10, 2025๐๐ก๐ ๐๐ซ๐๐ฌ๐โ๐๐๐ฆ๐จ๐ฏ๐ ๐๐๐ข๐จ๐ฆ in C++ (with C++20 updates)โ๐๐ซ๐จ๐๐ฅ๐๐ฆ:ย If you want to remove all elements satisfying a condition in a std::vector, one solution would be to loop over all theโฆ
SamiraยทJun 25, 2025๐๐ช๐ฎ๐๐ฅ๐ข๐ญ๐ฒ vs. ๐๐ช๐ฎ๐ข๐ฏ๐๐ฅ๐๐ง๐๐ in C++ STL Containers๐ฏThe Standard Template Library (STL) has three core components: 1๏ธโฃ๐๐จ๐ง๐ญ๐๐ข๐ง๐๐ซ๐ฌ 2๏ธโฃ๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ๐ฌ 3๏ธโฃ๐๐ญ๐๐ซ๐๐ญ๐จ๐ซ๐ฌ