struct s_A {...}; struct s_B {...}; map<s_A,s_B> M; s_A a; s_B b; M[a] = b; s_B b1 = (s_B*)&a;
你这符号什么的,还有逻辑看是不是错了。