hpx/hpx_init_impl.hpp
inline int init(
        util::function_nonser<
            int(boost::program_options::variables_map& vm)
        > const& f,
        boost::program_options::options_description const& desc_cmdline,
        int argc, char** argv, std::vector<std::string> const& cfg,
        startup_function_type startup, shutdown_function_type shutdown,
        hpx::runtime_mode mode)
    {
#if defined(HPX_WINDOWS)
        detail::init_winsocket();
#endif
        util::set_hpx_prefix(HPX_PREFIX);
        return detail::run_or_start(f, desc_cmdline, argc, argv,
            hpx_startup::user_main_config(cfg),
            std::move(startup), std::move(shutdown), mode, true);
    }
/// \brief Main entry point for launching the HPX runtime system.
///
/// This is the main entry point for any HPX application. This function
/// (or one of its overloads below) should be called from the users `main()`
/// function. It will set up the HPX runtime environment and schedule the
/// function given by \p f as a HPX thread.
\brief Main entry point for launching the HPX runtime system.
This is the main entry point for any HPX application. This function
(or one of its overloads below) should be called from the users `main()`
function. It will set up the HPX runtime environment and schedule the
function given by \p f as a HPX thread.
\ brief Main entry point for launching the HPX runtime system . This is the main entry point for any HPX application . This function ( or one of its overloads below ) should be called from the users ` main () ` function . It will set up the HPX runtime environment and schedule the function given by \ p f as a HPX thread .
inline int init(
        util::function_nonser<
            int(boost::program_options::variables_map& vm)
        > const& f,
        boost::program_options::options_description const& desc_cmdline,
        int argc, char** argv, std::vector<std::string> const& cfg,
        startup_function_type startup, shutdown_function_type shutdown,
        hpx::runtime_mode mode)
    {
#if defined(HPX_WINDOWS)
        detail::init_winsocket();
#endif
        util::set_hpx_prefix(HPX_PREFIX);
        return detail::run_or_start(f, desc_cmdline, argc, argv,
            hpx_startup::user_main_config(cfg),
            std::move(startup), std::move(shutdown), mode, true);
    }
inline int init ( util :: function_nonser < int ( boost :: program_options :: variables_map & vm ) > const & f , boost :: program_options :: options_description const & desc_cmdline , int argc , char * * argv , std :: vector < std :: string > const & cfg , startup_function_type startup , shutdown_function_type shutdown , hpx :: runtime_mode mode ) { #if defined ( HPX_WINDOWS ) detail :: init_winsocket ( ) ; #endif util :: set_hpx_prefix ( HPX_PREFIX ) ; return detail :: run_or_start ( f , desc_cmdline , argc , argv , hpx_startup :: user_main_config ( cfg ) , std :: move ( startup ) , std :: move ( shutdown ) , mode , true ) ; }
\brief Main entry point for launching the HPX runtime system.
\ brief Main entry point for launching the HPX runtime system .