|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
An initializer that a random generator keeps: one given as a modifiable lvalue is used where it is, so that the caller sees what the generator does to it; a temporary, or a const lvalue, is moved or copied into the generator, so that it lives as long as the generator. More...
#include <random_graph.H>
Public Member Functions | |
| Kept_Initializer (F &x) noexcept | |
Use x where it is. | |
| Kept_Initializer (const F &x) | |
Keep a copy of x. | |
| Kept_Initializer (F &&x) | |
Keep x, moved. | |
| Kept_Initializer (const Kept_Initializer &)=delete | |
| Kept_Initializer & | operator= (const Kept_Initializer &)=delete |
| F & | get () const noexcept |
| The initializer. | |
Private Attributes | |
| std::optional< F > | own |
| F * | f |
An initializer that a random generator keeps: one given as a modifiable lvalue is used where it is, so that the caller sees what the generator does to it; a temporary, or a const lvalue, is moved or copied into the generator, so that it lives as long as the generator.
| F | Type of the initializer. |
Definition at line 115 of file random_graph.H.
|
inlinenoexcept |
Use x where it is.
Definition at line 122 of file random_graph.H.
|
inline |
Keep a copy of x.
Definition at line 125 of file random_graph.H.
|
inline |
Keep x, moved.
Definition at line 128 of file random_graph.H.
|
delete |
|
inlinenoexcept |
The initializer.
Definition at line 134 of file random_graph.H.
References Aleph::Kept_Initializer< F >::f.
|
delete |
|
private |
Definition at line 118 of file random_graph.H.
Referenced by Aleph::Kept_Initializer< F >::get().
|
private |
Definition at line 117 of file random_graph.H.