Skip to content

Instantly share code, notes, and snippets.

@rofirrim
Created August 5, 2018 19:33
Show Gist options
  • Save rofirrim/eb134dcf139b1717aff1221e61c7f56f to your computer and use it in GitHub Desktop.
Save rofirrim/eb134dcf139b1717aff1221e61c7f56f to your computer and use it in GitHub Desktop.
Recmap Tentative Idea
#include <unordered_map>
struct RecMap
{
using Map = std::unordered_map<int, RecMap*>;
Map M;
};
int main(int argc, char* argv[])
{
RecMap RM0;
RM0.M[1] = nullptr;
RecMap RM1;
RM1.M[3] = &RM0;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment