Update documentation of LazyInit

This commit is contained in:
Jason Cobb 2020-05-14 10:45:18 -04:00
parent 9d8ee5cc8f
commit 648bb3aac7
No known key found for this signature in database
GPG Key ID: 2A3F6A6DCA1E8DED

View File

@ -31,8 +31,10 @@ namespace solidity::util
DEV_SIMPLE_EXCEPTION(BadLazyInitAccess);
/**
* Represents a lazy-initialized value.
* @tparam T the type of the lazy-initialized object; may not be a function, reference, array, or void type; may be const-qualified.
* A value that is initialized at some point after construction of the LazyInit. The stored value can only be accessed
* while calling "init", which initializes the stored value (if it has not already been initialized).
*
* @tparam T the type of the stored value; may not be a function, reference, array, or void type; may be const-qualified.
*/
template<typename T>
class LazyInit