identity Structure
A struct that provides a type definition as the template parameter.
Syntax
struct identity {
typedef Type type;
Type operator()(const Type& left) const;
};
Parameters
left
The value to identify.
Remarks
The class contains the public type definition type
, which is the same as the template parameter Type. It is used in conjunction with template function forward to ensure that a function parameter has the desired type.
For compatibility with older code, the class also defines the identity function operator()
which returns its argument left.
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for