User profile: Satoshi Yoda

User info
User name:Satoshi Yoda
History
Joined:
Number of posts:21
Latest posts:

Class with iteration capability like std::map
@George P Isn't you example just another (pre C++17) syntactic way to write the same thing as this? ...

Class with iteration capability like std::map
@seeplus Thank you for that example! It's very illustrative. I will save it in my learn C++ folder =...

Class with iteration capability like std::map
@seeplus There are 3 meaningful ways to iterate such container: [code] for (auto [n, str] : data) ...

Class with iteration capability like std::map
@JLBorges Sorry but your example just doesn't compile when I change [code] auto [n,str] : arr [/code...

Class with iteration capability like std::map
Maybe my problem is not with containers and iterations at all. Here: [code] TEST_CASE("just structur...

This user does not accept Private Messages