what's the purpose of typename assignment inside templates

前端 未结 6 895
后悔当初
后悔当初 2021-01-02 08:07

I have come across this piece of code (I\'m trying to include all details in case I\'m missing something):

template< typename TYPE = TYPE_with_an_arbitrar         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 08:37

    What you are looking for is "Template Specialization"

    Here's a link to some Example/Explanation

提交回复
热议问题