gpt4 book ai didi

C++ Typedef 签名

转载 作者:行者123 更新时间:2023-11-30 02:06:06 29 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Where and why do I have to put the “template” and “typename” keywords?

我正在浏览 this boost::multi_array example它有一个 typedef,例如:

template <typename Array>
...
typedef typename Array::template subarray<2>::type::iterator iterator2;

我明白了

typedef typename <type> <new_type>;

signature 看起来像,但是在 typedef typename 之后有三个东西,我无法在网上找到它的名称或作用。有人可以分解一下 typedef 的作用以及为什么它有三件事吗?我不认为它是特定于提升的。

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com