C++ features by examples
Collaboration diagram for Template parameters:

Classes

struct  B< n >
 
struct  my_integer_sequence< seq >
 

Functions

tuple< int, int > foo_tuple ()
 

Variables

B< 5 > b1
 
B< 'a'> b2
 
auto seq = my_integer_sequence<0, 1, 2>()
 auto seq = integer_sequence<int, 0, 1, 2>(); More...
 

Detailed Description

template_parameters

Function Documentation

◆ foo_tuple()

tuple< int, int > foo_tuple ( )

Definition at line 114 of file 17.cpp.

115{
116 // return make_tuple(1, -1);
117 return {1, -1};
118}

Variable Documentation

◆ b1

B<5> b1

Definition at line 107 of file 17.cpp.

◆ b2

B<'a'> b2

Definition at line 109 of file 17.cpp.

◆ seq

auto seq = my_integer_sequence<0, 1, 2>()

auto seq = integer_sequence<int, 0, 1, 2>();

Definition at line 125 of file 17.cpp.