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

Go to the source code of this file.

Functions

void take_unique_ptr_by_value (std::unique_ptr< int > uptr)
 
void pass_unique_ptr_to_a_funcion_by_value ()
 
void test_cloning_unique_ptr ()
 
int main ()
 

Variables

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

Function Documentation

◆ main()

int main ( )

Definition at line 92 of file 01-unique_ptr.cpp.

Here is the call graph for this function:

◆ pass_unique_ptr_to_a_funcion_by_value()

void pass_unique_ptr_to_a_funcion_by_value ( )

Definition at line 28 of file 01-unique_ptr.cpp.

Here is the call graph for this function:

◆ take_unique_ptr_by_value()

void take_unique_ptr_by_value ( std::unique_ptr< int >  uptr)

Definition at line 17 of file 01-unique_ptr.cpp.

Here is the caller graph for this function:

◆ test_cloning_unique_ptr()

void test_cloning_unique_ptr ( )

Definition at line 67 of file 01-unique_ptr.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 12 of file 01-unique_ptr.cpp.

◆ stream

tpf::sstream stream

Definition at line 11 of file 01-unique_ptr.cpp.