C++ Library Extensions 2022.12.09
To help learn modern C++ programming
020-copy_elision.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 020-copy_elision.cpp:

Go to the source code of this file.

Classes

class  CopyOrMove
 

Functions

CopyOrMove make_object_copy_elision (int n)
 
void examples_for_copy_elision ()
 
CopyOrMove make_copy_or_move_Named_Return_Value_Optimization (int n)
 
void example_for_named_return_value_optimization ()
 
CopyOrMove failed_named_return_value_optimization (int a, int b)
 
void example_for_failed_named_return_value_optimization ()
 
CopyOrMove successful_named_return_value_optimization (int a, int b)
 
void example_for_successful_named_return_value_optimization ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 

Function Documentation

◆ example_for_failed_named_return_value_optimization()

void example_for_failed_named_return_value_optimization ( )

Definition at line 149 of file 020-copy_elision.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ example_for_named_return_value_optimization()

void example_for_named_return_value_optimization ( )

Definition at line 130 of file 020-copy_elision.cpp.

Here is the call graph for this function:

◆ example_for_successful_named_return_value_optimization()

void example_for_successful_named_return_value_optimization ( )

Definition at line 173 of file 020-copy_elision.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ examples_for_copy_elision()

void examples_for_copy_elision ( )

Definition at line 95 of file 020-copy_elision.cpp.

Here is the call graph for this function:

◆ failed_named_return_value_optimization()

CopyOrMove failed_named_return_value_optimization ( int  a,
int  b 
)

Definition at line 139 of file 020-copy_elision.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 178 of file 020-copy_elision.cpp.

Here is the call graph for this function:

◆ make_copy_or_move_Named_Return_Value_Optimization()

CopyOrMove make_copy_or_move_Named_Return_Value_Optimization ( int  n)

Definition at line 108 of file 020-copy_elision.cpp.

Here is the caller graph for this function:

◆ make_object_copy_elision()

CopyOrMove make_object_copy_elision ( int  n)

Definition at line 87 of file 020-copy_elision.cpp.

Here is the caller graph for this function:

◆ successful_named_return_value_optimization()

CopyOrMove successful_named_return_value_optimization ( int  a,
int  b 
)

Definition at line 159 of file 020-copy_elision.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 26 of file 020-copy_elision.cpp.

◆ stream

tpf::sstream stream

Definition at line 25 of file 020-copy_elision.cpp.