SlHelpers
SlHelpers::Env Struct Reference

A helper for environment variables. More...

#include <Misc.h>

Static Public Member Functions

template<typename T = std::string>
static std::optional< T > get (const std::string &name) noexcept
 Get value of name in environment. More...
 

Detailed Description

A helper for environment variables.

Member Function Documentation

◆ get()

template<typename T = std::string>
static std::optional<T> SlHelpers::Env::get ( const std::string &  name)
inlinestaticnoexcept

Get value of name in environment.

Parameters
nameName of variable to obtain value of
Returns
Value of environment variable name. nullopt if not present.

The documentation for this struct was generated from the following file: