Orocos Real-Time Toolkit 2.6.0
Store a return value which may be a void, reference, const reference or any other type. More...
|T &||result ()|
|operator T & ()|
|template<class F >|
|void||exec (F f)|
|Stores the result of a function. |
Store a return value which may be a void, reference, const reference or any other type.
We need these specialisations because the collection of the results will be different if R is non-void or poid (appears as first arg of collect() or not respectively). So RStore is the only instance that knows if a return value was stored or not.
Stores the result of a function.
The RStore<void> specialisation will not store anything, and just call f().
|f||The function object to execute and store the results from|