#include <lazy.h>
|
| static lazyt | from_fun (std::function< valuet()> fun) |
| | Delay the computation of fun to the next time the force method is called. More...
|
| |
|
| | lazyt (std::function< valuet()> fun) |
| |
template<typename valuet>
class lazyt< valuet >
Definition at line 16 of file lazy.h.
◆ lazyt()
template<typename valuet >
| lazyt< valuet >::lazyt |
( |
std::function< valuet()> |
fun | ) |
|
|
inlineexplicitprivate |
◆ force()
template<typename valuet >
| valuet lazyt< valuet >::force |
( |
| ) |
|
|
inline |
Force the computation of the value.
If it was already computed, return the same result.
Definition at line 28 of file lazy.h.
◆ from_fun()
template<typename valuet >
| static lazyt lazyt< valuet >::from_fun |
( |
std::function< valuet()> |
fun | ) |
|
|
inlinestatic |
Delay the computation of fun to the next time the force method is called.
Definition at line 21 of file lazy.h.
◆ evaluation_function
template<typename valuet >
| std::function<valuet()> lazyt< valuet >::evaluation_function |
|
private |
◆ value
template<typename valuet >
The documentation for this class was generated from the following file:
- /home/runner/work/cbmc-documentation/cbmc-documentation/src/util/lazy.h