Visual Studio Code – using C++ ranges to create hierarchical tree structure from a flattened table
I have a simple struct containing three fields and a spaceship operator <=> as follows: using MyStruct = struct MyStruct { unsigned id; std::filesystem::path sourcePath; std::string functionName; auto operator<=>(const MyStruct&) const = default; }; The data is initialized as shown…