The new standard library in Sean's proposal is meant to show that you can have safe equivalents for the standard library. You're still free to use an unsafe block within a safe function to make calls into the std:: namespace. And legacy unsafe code can use safe c++'s components.
It also shows something else: that it is impossible to implement a std library without rewriting it.
I mean:
std::function
std::move_only_function
std::function_ref
std::list
std::forward_list
vector
string
string_view
map
unordered_map
queue
stack
deque
all ranges header
all algorithms
And much, much more... that needs a spec, an implementation, debugging and all compilers to implement it. At least the big 3. Yes, just a detail without importance I guess...
View all comments
Show parent comment
3
u/Dalzhim C++Montréal UG Organizer Oct 28 '24
The new standard library in Sean's proposal is meant to show that you can have safe equivalents for the standard library. You're still free to use an
unsafeblock within a safe function to make calls into thestd::namespace. And legacyunsafecode can use safe c++'s components.