libcoro  1.0
Coroutine support library for C++20
List of all members
coro::pointer_wrapper< T > Class Template Reference

Wraps object into pointer. More...

#include <future_list.h>

Detailed Description

template<typename T>
class coro::pointer_wrapper< T >

Wraps object into pointer.

Use on initialization, where pointer is expected, but we want to set it as reference

int v = 10;
pointer_wrapper<int> pwv(v);
int pb = pwv.get();

;

The main benefit is, that defines operator *

Template Parameters
Ttype

Definition at line 26 of file future_list.h.


The documentation for this class was generated from the following file: