It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                9年前关闭。
            
                    
在C ++中,template and inline are orthogonal是什么意思?

最佳答案

如果两件事是“正交的”,则意味着它们是独立的。在这种情况下,这意味着模板可以是内联的,模板可以是内联的,非模板可以是内联的,并且非模板可以是内联的。
我认为出现问题是因为两者之间存在某种表面相似性,因为两者都应存在于使用它们的翻译单元中,换句话说,应在.h文件中提供它们的定义(实体,工具)。但是,从第一段可以看出,模板和内联确实是正交的。高温超导

07-24 09:51
查看更多