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

Go to the source code of this file.

Classes

class  smarter_ptr< ElementType >
 

Functions

void test_unique_ptr_and_shared_ptr_output ()
 
void why_operator_overloading_for_unique_ptr_and_shared_ptr ()
 
void test_convert_unique_ptr_to_shared_ptr ()
 
void test_smarter_ptr ()
 
int main ()
 

Variables

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

Function Documentation

◆ main()

int main ( )

Definition at line 276 of file 06-unique_ptr.cpp.

Here is the call graph for this function:

◆ test_convert_unique_ptr_to_shared_ptr()

void test_convert_unique_ptr_to_shared_ptr ( )

Definition at line 67 of file 06-unique_ptr.cpp.

◆ test_smarter_ptr()

void test_smarter_ptr ( )

Definition at line 244 of file 06-unique_ptr.cpp.

Here is the caller graph for this function:

◆ test_unique_ptr_and_shared_ptr_output()

void test_unique_ptr_and_shared_ptr_output ( )

Definition at line 30 of file 06-unique_ptr.cpp.

◆ why_operator_overloading_for_unique_ptr_and_shared_ptr()

void why_operator_overloading_for_unique_ptr_and_shared_ptr ( )

Definition at line 44 of file 06-unique_ptr.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 06-unique_ptr.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 06-unique_ptr.cpp.