|
|
|
|
|
by DerDangDerDang
2026 days ago
|
|
I have not. Does the borrow checker make things difficult? Isn’t there a weak_ptr equivalent? Though honestly, in C++ it is very rare I use something other than vector (potentially wrapped for specific use case, like boost flat_map) |
|
(And yes, it's a niche data structure, vecs are far more common, but it's people's go-to "the borrow checker restricts you too much" example anyway.)