Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/language/sizeof..."

From cppreference.com
< cpp‎ | language
(direct link)
(since c++11)
Line 6: Line 6:
  
 
{{sdcl list begin}}
 
{{sdcl list begin}}
{{sdcl list item | {{ttb|sizeof...(}} {{sparam|parameter_pack}} {{ttb|)}}}}
+
{{sdcl list item | {{ttb|sizeof...(}} {{sparam|parameter_pack}} {{ttb|)}} | notes={{mark since c++11}}}}
 
{{sdcl list end}}
 
{{sdcl list end}}
  

Revision as of 13:37, 19 January 2012

Template:cpp/language/sidebar Queries the number of elements in a parameter pack.

Contents

Syntax

sizeof...( Template:sparam ) (since C++11)

Returns an object of type Template:cpp.

Explanation

Returns the number of elements in a parameter pack.

Keywords

sizeof

Example

Template:example cpp

See also