C++ Library Extensions 2022.12.09
To help learn modern C++ programming
033-coroutine.cpp File Reference
#include "033-coroutine.hpp"
Include dependency graph for 033-coroutine.cpp:

Go to the source code of this file.

Functions

resumable_type< int > addition (int a, int b)
 
void test_co_return ()
 
resumable_type< int > summation (int max)
 
void test_co_yield ()
 
resumable_type< int > factorial (int max)
 
void test_co_await ()
 
resumable_type no_return_value_coroutine (int max)
 
void test_no_return_value_coroutine ()
 
int main ()
 

Function Documentation

◆ addition()

resumable_type< int > addition ( int  a,
int  b 
)

Definition at line 4 of file 033-coroutine.cpp.

Here is the caller graph for this function:

◆ factorial()

resumable_type< int > factorial ( int  max)

Definition at line 45 of file 033-coroutine.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 91 of file 033-coroutine.cpp.

Here is the call graph for this function:

◆ no_return_value_coroutine()

resumable_type no_return_value_coroutine ( int  max)

Definition at line 72 of file 033-coroutine.cpp.

Here is the caller graph for this function:

◆ summation()

resumable_type< int > summation ( int  max)

Definition at line 21 of file 033-coroutine.cpp.

Here is the caller graph for this function:

◆ test_co_await()

void test_co_await ( )

Definition at line 63 of file 033-coroutine.cpp.

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

◆ test_co_return()

void test_co_return ( )

Definition at line 11 of file 033-coroutine.cpp.

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

◆ test_co_yield()

void test_co_yield ( )

Definition at line 34 of file 033-coroutine.cpp.

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

◆ test_no_return_value_coroutine()

void test_no_return_value_coroutine ( )

Definition at line 84 of file 033-coroutine.cpp.

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