// (C) Copyright Gennadiy Rozental 2001-2006. // 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) // See http://www.boost.org/libs/test for the library home page. // Boost.Runtime.Param #include #include namespace rt = boost::runtime; namespace env = boost::runtime::env; // STL #include int main() { std::cout << env::get("NUMBER_OF_PROCESSORS") << '\n' << env::get("TEMP") << std::endl; boost::optional n; env::get( "NUMBER_OF_PROCESSORS", n ); if( n ) std::cout << n << std::endl; return 0; } // EOF