Can we see the template instantiated code by C++ compiler

前端 未结 8 1914
死守一世寂寞
死守一世寂寞 2020-11-30 20:09

is there a way to know the compiler instantiated code for a template function or a class in C++

Assume I have the following piece of code

template &l         


        
8条回答
  •  误落风尘
    2020-11-30 21:06

    If your looking for the equivalent C++ code then no. The compiler never generates it. It's much faster for the compiler to generate it's intermediate representation straight off than to generate c++ first.

提交回复
热议问题