C++ features by examples
Collaboration diagram for Template:

Modules

 Template argument deduction
 
 Template parameters
 

Functions

void deduction_guides_17 ()
 

Detailed Description

https://en.cppreference.com/w/cpp/language/templates

Function Documentation

◆ deduction_guides_17()

void deduction_guides_17 ( )

template_argument_deduction

Definition at line 89 of file 17.cpp.

90{
91 assert(deduction_guide1_queue[0] == 1);
92 assert(*deduction_guide2_queue[0] == 1);
93 assert(deduction_guide1_vector[0] == 1);
94 assert(*deduction_guide2_vector[0] == 1);
95}
vector deduction_guide2_vector
deduced vector<vector<int> :: iterator>
Definition: 17.cpp:82
deque deduction_guide2_queue
deduced deque<vector<int> :: iterator>
Definition: 17.cpp:73
deque deduction_guide1_queue(int_vector.begin(), int_vector.end())
deduction_guides
vector deduction_guide1_vector(int_vector.begin(), int_vector.end())
deduced vector<int>
Here is the call graph for this function:
Here is the caller graph for this function: