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

Go to the source code of this file.

Classes

class  reference_wrapper< Type >
 

Functions

template<typename Type >
void increment (Type n)
 
template<typename Type >
void decrement (Type &&n)
 
void examples_for_std_ref ()
 
template<typename Type >
reference_wrapper< Type > ref (Type &val) noexcept
 
void examples_for_custom_ref ()
 
int main ()
 

Variables

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

Function Documentation

◆ decrement()

template<typename Type >
void decrement ( Type &&  n)

Definition at line 17 of file 018-std_ref.cpp.

Here is the caller graph for this function:

◆ examples_for_custom_ref()

void examples_for_custom_ref ( )

Definition at line 123 of file 018-std_ref.cpp.

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

◆ examples_for_std_ref()

void examples_for_std_ref ( )

Definition at line 22 of file 018-std_ref.cpp.

Here is the call graph for this function:

◆ increment()

template<typename Type >
void increment ( Type  n)

Definition at line 11 of file 018-std_ref.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 193 of file 018-std_ref.cpp.

Here is the call graph for this function:

◆ ref()

template<typename Type >
reference_wrapper< Type > ref ( Type &  val)
noexcept

Definition at line 118 of file 018-std_ref.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 8 of file 018-std_ref.cpp.

◆ stream

tpf::sstream stream

Definition at line 7 of file 018-std_ref.cpp.