Ion
|
Lazily populates a value. More...
#include "once.h"
Public Member Functions | |
Lazy (const std::function< T()> &creator) | |
Lazy (const Lazy< T > &other) | |
Copy constructor, only copies the creator. More... | |
const T & | Get () const |
Lazily populates a value.
Supports copy construct for use in resizable containers. Note that the creator function will be called once for each copy even if the value has been evaluated, so container resizing should be avoided once values have started to be populated.
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 71 of file once.h.
References ion::base::OnceFlag::CallOnce().