What is POI and what does it mean?

前端 未结 2 1921
傲寒
傲寒 2020-12-11 15:50

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

2条回答
  •  生来不讨喜
    2020-12-11 16:28

    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.:

提交回复
热议问题