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

Go to the source code of this file.

Classes

class  copy_or_move
 
class  stl_extension< ElementType, ContainerType >
 

Typedefs

template<typename ElementType , template< typename, typename... > class ContainerType>
using stl_extension_t = stl_extension< ElementType, ContainerType >
 

Functions

copy_or_move copy_elision ()
 
void test_copy_elision ()
 
copy_or_move return_prvalue (int n=2, int m=1)
 
void test_which_constructor_gets_called ()
 
void test_stl_extension ()
 
int main ()
 

Variables

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

Typedef Documentation

◆ stl_extension_t

template<typename ElementType , template< typename, typename... > class ContainerType>
using stl_extension_t = stl_extension<ElementType, ContainerType>

Definition at line 232 of file 050-stl_extension.cpp.

Function Documentation

◆ copy_elision()

copy_or_move copy_elision ( )

Definition at line 64 of file 050-stl_extension.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 256 of file 050-stl_extension.cpp.

Here is the call graph for this function:

◆ return_prvalue()

copy_or_move return_prvalue ( int  n = 2,
int  m = 1 
)

Definition at line 74 of file 050-stl_extension.cpp.

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

◆ test_copy_elision()

void test_copy_elision ( )

Definition at line 69 of file 050-stl_extension.cpp.

Here is the call graph for this function:

◆ test_stl_extension()

void test_stl_extension ( )

Definition at line 235 of file 050-stl_extension.cpp.

Here is the caller graph for this function:

◆ test_which_constructor_gets_called()

void test_which_constructor_gets_called ( )

Definition at line 86 of file 050-stl_extension.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 050-stl_extension.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 050-stl_extension.cpp.