Namespaces
Variants

cpp/keyword/decltype

From cppreference.com
Revision as of 01:32, 27 October 2011 by Nate (talk | contribs) (adding a few sections)

Queries the type of an expression

Syntax

decltype ( Template:sparam )

Explanation

decltype is useful when declaring types that are difficult or impossible to declare using standard notation, like lambda-related types or types that depend on template parameters.

Keywords

decltype

Example

Template:example cpp