Namespaces
Variants
Views
Actions

cpp/keyword/decltype

From cppreference.com
< cpp‎ | keyword
Revision as of 17:32, 26 October 2011 by Nate (Talk | contribs)

Queries the type of an expression

Contents

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