泛型,又称为参数化类型(parameterized type),是含有单个或多个类型参数(type parameter)的类或接口的定义.由泛型定义实际的类的和接口时,只需为泛型的每个类型参数提供类型实参(type argument)即可.
基于690个网页-相关网页
T被称为类型参数(type arguments),泛型类形如:[代码]1,下例是如果定义以及实现一个泛型类代码2,下面是泛型接口的实现代码3,IEnumerable 基于42个网页-相关网页
...新增Fortran 2003功能,包括I/O递回函数、参数化衍生类型(parameterized derived type)、延迟类型参数(deferred type parameter)和延迟字符长度。
基于12个网页-相关网页
类型参数化 type parameterized ; type parameterization ; parameterized types
模板类型参数 template type parameter
显式的类型参数 explicit type parameter
非类型参数 non-type parameter
泛型类型参数 Generic Type Parameter ; generic type argument ; yleisen tyypin parametri ; yleinen tyyppiargumentti
模板非类型参数 template nontype parameter ; template non-type arguments
泛型类型参数列表 generic type parameter list ; yleisen tyypin parametriluettelo ; lijst van algemene parametertypen
形式类型参数 formal type parameters
无类型参数 Untyped parameters
图6显示了具有订单类型参数的船舶操作,该参数在船舶订单操作中不存在。
Figure 6 shows a ship operation with an order type parameter that is not present in the ship order operation.
该类会最终继承类型参数的界限!
通过反射访问类型参数信息有些复杂。
Accessing type parameter information through reflection is somewhat complex.
You have to be ever so explicit as to what data type your actually passing in.
你必须很清楚,你们输入的参数是什么类型的。
It does not check the types of its arguments at all.
它根本不检查它的,参数的类型。
And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.
我不太记得类中的这些类型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个类型的数据,需要占用多大空间。
应用推荐