当前位置: 首页>>代码示例>>C++>>正文


C++ atom::to_string方法代码示例

本文整理汇总了C++中atom::to_string方法的典型用法代码示例。如果您正苦于以下问题:C++ atom::to_string方法的具体用法?C++ atom::to_string怎么用?C++ atom::to_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在atom的用法示例。


在下文中一共展示了atom::to_string方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: timer_reconnect

    void timer_reconnect(const boost::system::error_code& ec) {
        if (ec == boost::asio::error::operation_aborted)
            return;     // timer reset

        if (verbose() >= VERBOSE_TRACE)
            std::cerr << "basic_otp_connection::timer_reconnect: " << ec.message() << std::endl;

        m_transport = connection_type::create(
                          m_io_service, this, m_node->nodename().to_string(),
                          m_remote_nodename.to_string(), m_cookie, m_alloc);
    }
开发者ID:alepharchives,项目名称:eixx,代码行数:11,代码来源:basic_otp_connection.hpp

示例2: Alloc

 basic_otp_connection(
     connect_completion_handler h,
     boost::asio::io_service& a_svc,
     basic_otp_node<Alloc,Mutex>* a_node, const atom& a_remote_node,
     const std::string& a_cookie, int a_reconnect_secs = 0,
     const Alloc& a_alloc = Alloc())
     : m_io_service(a_svc)
     , m_node(a_node)
     , m_remote_nodename(a_remote_node)
     , m_cookie(a_cookie)
     , m_alloc(a_alloc)
     , m_connected(false)
     , m_reconnect_timer(m_io_service)
     , m_reconnect_secs(a_reconnect_secs)
     , m_abort(false)
 {
     BOOST_ASSERT(a_node != NULL);
     m_on_connect_status = h;
     m_transport = connection_type::create(
                       m_io_service, this, a_node->nodename().to_string(),
                       a_remote_node.to_string(), a_cookie, a_alloc);
 }
开发者ID:alepharchives,项目名称:eixx,代码行数:22,代码来源:basic_otp_connection.hpp

示例3: str

 const string_t&         str()           const { return m_name.to_string(); }
开发者ID:fredrikelinder,项目名称:eixx,代码行数:1,代码来源:var.hpp


注:本文中的atom::to_string方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。