Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
pavel_v u/pavel_v avatar

pavel_v

u/pavel_v

New
Open sort options
Change post view







r/cpp icon

Discussions, articles and news about the C++ programming language or programming in C++.


Members Online
r/cpp

Discussions, articles and news about the C++ programming language or programming in C++.


Members Online

Is there a working implementation of std::flat_map and std::flat_set?

pavel_v
replied to joaquintides

I could be wrong, but I think that the boost version of flat_map uses single sorted vector while the standard one is supposed to use two different collections - one for the keys and another one for the values. Here, in the WG21-SG14 repo, is the current example implementation which uses 2 separate containers.












r/cpp icon

Discussions, articles and news about the C++ programming language or programming in C++.


Members Online
r/cpp

Discussions, articles and news about the C++ programming language or programming in C++.


Members Online

Latency-Sensitive Application and the Memory Subsystem Part 2: Memory Management Mechanisms - Johnny's Software Lab

pavel_v
replied to current_thread

I'm not the person who wrote the article but there is a link to the source code for the experiment

In this experiment, we measure the impact of doing computation on an array which is prefaulted vs an array which is not prefaulted. The source code is available here.









pavel_v u/pavel_v avatar