User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:13752
Latest posts:

Exit condition for 'std::unordered_map' iterator loop with a step size > 1
C++23: [code]for( auto&& [k,v] : g_input | std::views::as_const | std::views::stride(3) ) { /* ... ...

Class with iteration capability like std::map
Something along these lines, perhaps: [code]#include <iostream> #include <vector> #include <utility...

Is there integer typedef like size_t for signed values?
[tt]std::ptrdiff_t[/tt] https://en.cppreference.com/w/c/types/ptrdiff_t

add by 4
[code]// Gregorian calender; extra leap day occurs in each year that is // an integer multiple of 4...

Interfacing functions in one class from another
O(1) look up on key; and iteration in insertion order. As in https://github.com/Tessil/ordered-map ...