Questions
Linux
Laravel
Mysql
Ubuntu
Git
Menu
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
JAVA
JQUERY
R
React
Kotlin
×
Linux
Laravel
Mysql
Ubuntu
Git
New posts in weak-ptr
Role of weak_ptr in shared_ptr
Nov 02, 2025
c++
shared-ptr
smart-pointers
weak-ptr
cyclic-reference
weak_ptr - Dereferencing - Throw if expired
Oct 29, 2025
c++
pointers
exception
weak-ptr
Capture shared_ptr in lambda
Oct 27, 2025
c++
lambda
shared-ptr
weak-ptr
When is a std::weak_ptr empty? Is an expired std::weak_ptr empty?
Oct 26, 2025
c++
language-lawyer
std
smart-pointers
weak-ptr
std::shared_ptr, std::weak_ptr and control block
Oct 23, 2025
c++
c++11
stl
shared-ptr
weak-ptr
Why is empty weak_ptr required to store null pointer, while empty shared_ptr is allowed to store non-null pointer?
Oct 19, 2025
c++
c++17
weak-ptr
What is the reason for the name `weak_ptr::lock()`?
Sep 05, 2025
c++
shared-ptr
terminology
naming
weak-ptr
Why doesn't this time_zone_ptr example contain a memory leak?
Mar 25, 2023
c++
datetime
boost
timezone
weak-ptr
In well designed code should you expect locking of weak_ptr to always succeed?
Feb 22, 2023
c++
shared-ptr
smart-pointers
weak-ptr
C++: Replace raw pointers with shared and weak ptr
Feb 17, 2023
c++
memory-management
boost
shared-ptr
weak-ptr
Function overloading resolution with weak_ptr as argument
Feb 14, 2023
c++
c++11
smart-pointers
static-cast
weak-ptr
Constructing a constexpr std::weak_ptr
Feb 09, 2023
c++
c++11
destructor
constexpr
weak-ptr
weak_ptr's weird copy constructors
Jan 21, 2023
c++
c++11
shared-ptr
weak-ptr
Comparator operator in weak_ptr C++
Jan 19, 2023
c++
stl
c++11
weak-ptr
C++11: How is object deleted if it was constructed using make_shared
Jan 15, 2023
c++
c++11
shared-ptr
reference-counting
weak-ptr
Boost shared_from_this and destructor
Dec 30, 2022
c++
boost
shared-ptr
object-lifetime
weak-ptr
c++ weak_ptr expiring after dereference?
Dec 20, 2022
c++
smart-pointers
weak-ptr
Is it wise to provide access to weak_ptr in a library interface?
Dec 16, 2022
c++
boost
weak-ptr
Breaking cyclic references with std::weak_ptr and alias constructor: sound or problematic?
Oct 21, 2022
c++
shared-ptr
weak-ptr
cyclic-reference
How to create a std::shared_ptr with the same control block as an expired std::weak_ptr
Sep 03, 2025
c++
c++11
shared-ptr
weak-ptr
Older Entries »