Created
August 5, 2018 19:33
-
-
Save rofirrim/eb134dcf139b1717aff1221e61c7f56f to your computer and use it in GitHub Desktop.
Recmap Tentative Idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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