What is POI and what does it mean?

你说的曾经没有我的故事 提交于 2019-12-29 08:35:08

问题


What is POI? I have seen this term being used several times in context of C++ Templates. What does it mean?


回答1:


POI means Point Of Instantiation.

From C++ Templates : The Complete Guide

10.3.2 Points of Instantiation

A point of instantiation (POI) is created when a code construct refers to a template specialization in such a way that the definition of the corresponding template needs to be instantiated to create that specialization. The POI is a point in the source where the substituted template could be inserted.:




回答2:


Point Of Instantiation. It's important with templates largely because the meaning of a symbol inside the template can depend on the meaning attached to that symbol at the point of instantiation.



来源:https://stackoverflow.com/questions/3866215/what-is-poi-and-what-does-it-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!