Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
auto main() -> int {
{v("USER"),
v("HOME"),
v("PATH"),
v("LANGUAGE"),
v("SHELL"),
v("PAGER"),
v("EDITOR"),
v("NONE")})) {
std::cout << name << ": "
<< std::endl;
}
return 0;
}
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
Common code is placed in this namespace.
Definition: eagine.hpp:21
static constexpr auto view(T *addr, S size) noexcept -> const_span< T >
Creates a view starting at the specified pointer and specified length.
Definition: span.hpp:458
static auto get_environment_variable(string_view variable_name) noexcept -> optionally_valid< string_view >
Returns the value in the specified environment variable.
Definition: environment.hpp:21