Comments (4)
I have implemented this here: https://github.com/vasama/MSSTL/tree/feature/inplace_vector
When you start accepting C++26 features, I will be happy to reopen and update my PR.
Please comment in this issue so that I receive a notification about it.
from stl.
Dynamically allocated proxy objects are a bane, and we should avoid adding any more.
There's no point in container-internal proxy objects - their whole purpose is to allow iterators to find their parents after swapping/moving. (Note the distinction between them and sentinel nodes. Container-internal sentinel nodes work because they don't remain valid after swapping/moving.)
from stl.
In my implementation the debug iterator currently contains a pointer directly to the size member of the inplace_vector
, which is a null pointer in the case of zero capacity. This is used by the iterator itself to detect out-of-bounds accesses. The vector itself detects its own iterators using the data pointer also stored in the iterator.
from stl.
A proxy object for container/iterator debugging will make the container totally non-trivial, which is fine for all containers but array
and inplace_vector
. The problem is more severe for inplace_vector
because the valid range of an inplace_vector
object can vary among its lifetime.
Do we want to add a proxy object (but shouldn't be dynamically allocated if added) for debugging when it's allowed to do so?
from stl.
Related Issues (20)
- `STL.natvis`: `ranges::view_interface` doesn't always have `size()`
- `STL.natvis`: The VS copy is outdated
- `README.md`: Update working draft revision to N4986
- xlocnum error C2065: 'PTRDIFF_MAX': undeclared identifier HOT 10
- `<type_traits>`: Logical operator traits with non-`bool_constant` arguments emit truncation warnings
- STL: `expected<any, T>` and its friends can break container iterator comparison HOT 2
- Shouldn't `std::exception::what()` be declared as `noexcept`? HOT 2
- <iostream>: std::cout with very low speed compared with printf HOT 3
- <stacktrace>: unloading fails of a dll that first obtained stacktrace
- Support for Win7 / Server 2008 R2 is DOOMED HOT 8
- <format>:How do I specialize the std::formatter with module HOT 1
- `<algorithm>`: `ranges::inplace_merge` doesn't seem to be able to utilize `ranges::upper_bound` HOT 8
- <execution>: Silent data loss in nested parallel file operations HOT 10
- `<yvals_core.h>`: Update `_MSVC_STL_UPDATE` to August 2024
- <mutex>: Problem using mutex with pybind. HOT 3
- C++23 official flag(not /std:c++latest) HOT 16
- `<algorithm>`: `lexicographical_compare_three_way` missing _Mandates_ check
- `<spanstream>`: The `span` constructed by `basic_ispanstream`'s range constructor may be ill-formed HOT 3
- `README.md`: Update working draft revision to N4988
- <iomanip>: std::put_time should not crash on invalid/out-of-range tm struct values HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stl.