Gets the value of an environment variable.
- Template Parameters
-
| T | The type of value to read. |
- Parameters
-
| name | The name of the environment variable to get. |
- Returns
- Returns lib::nullopt if the environment variable is not set or the environment variable does not contain a value of type
T. Otherwise, returns a T containing the value of the environment variable.