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


C++ value_type::end方法代码示例

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


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

示例1: format_forward

    //! The function performs formatting of the extracted scope stack in forward direction
    void format_forward(stream_type& strm, value_type const& scopes) const
    {
        value_type::const_iterator it, end = scopes.end();
        if (m_depth > 0)
        {
            value_type::size_type const scopes_to_iterate = (std::min)(m_depth, scopes.size());
            it = scopes.end();
            std::advance(it, -static_cast< value_type::difference_type >(scopes_to_iterate));
        }
        else
        {
            it = scopes.begin();
        }

        if (it != end)
        {
            if (it != scopes.begin())
                strm << m_incomplete_marker;

            m_element_formatter(strm, *it);
            for (++it; it != end; ++it)
            {
                strm << m_delimiter;
                m_element_formatter(strm, *it);
            }
        }
    }
开发者ID:ACEZLY,项目名称:GreenLeaf,代码行数:28,代码来源:named_scope.hpp

示例2: get_origin

 size_t get_origin(size_t i) const {
     return std::find(
                oneLineNotation.begin(),
                oneLineNotation.end(),
                i
            ) - oneLineNotation.begin();
 }
开发者ID:Mizuchi,项目名称:SBL,代码行数:7,代码来源:permutation.hpp

示例3: encode

 static void encode(util::OctetStream& output, value_type const& value)
 {
     output.append(value.begin(), value.end());
 }
开发者ID:DouglasHeriot,项目名称:ember-plus,代码行数:4,代码来源:StdString.hpp


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