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

Go to the source code of this file.

Classes

class  CopyOrMove
 

Functions

CopyOrMove make_copy_or_move (int n)
 
void don_t_do_this ()
 
void better_but_not_perfect ()
 
void do_this ()
 
int main ()
 

Variables

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

Function Documentation

◆ better_but_not_perfect()

void better_but_not_perfect ( )

Definition at line 76 of file 041-move_semantic.cpp.

◆ do_this()

void do_this ( )

Definition at line 84 of file 041-move_semantic.cpp.

Here is the caller graph for this function:

◆ don_t_do_this()

void don_t_do_this ( )

Definition at line 68 of file 041-move_semantic.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 92 of file 041-move_semantic.cpp.

Here is the call graph for this function:

◆ make_copy_or_move()

CopyOrMove make_copy_or_move ( int  n)

Definition at line 61 of file 041-move_semantic.cpp.

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 041-move_semantic.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 041-move_semantic.cpp.