1
// (C) Copyright Gennadiy Rozental 2001-2008.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
// http://www.boost.org/LICENSE_1_0.txt)
6
// See http://www.boost.org/libs/test for the library home page.
9
#include <boost/test/utils/runtime/env/variable.hpp>
10
#include <boost/test/utils/basic_cstring/io.hpp>
12
namespace rt = boost::runtime;
13
namespace env = boost::runtime::env;
19
std::cout << env::get<int>("NUMBER_OF_PROCESSORS") << '\n' << env::get<rt::cstring>("TEMP") << std::endl;
21
boost::optional<int> n;
23
env::get( "NUMBER_OF_PROCESSORS", n );
26
std::cout << n << std::endl;