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


C++ value_type类代码示例

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


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

示例1: count

	static int count(value_type const& i) {
		return static_cast<int>(i.size());
	}
开发者ID:Ochieng,项目名称:AnimationMaker,代码行数:3,代码来源:graphics_loader_base.hpp

示例2: encodedLength

 static std::size_t encodedLength(value_type tag)
 {
     return 1U + ((tag.number() < 0x1F) ? 0U : detail::getMultiByteEncodedLength(tag.number()));
 }
开发者ID:DouglasHeriot,项目名称:ember-plus,代码行数:4,代码来源:Tag.hpp

示例3: erase

 void erase(value_type x)
 {
   node_impl_type::extract(x->up(),end()+1);
   --size_;
 }
开发者ID:cboulay,项目名称:labstreaminglayer,代码行数:5,代码来源:rnd_index_ptr_array.hpp

示例4: operator

 std::size_t operator()(const value_type &val) const
 {
     const char_type *beg = ipcdetail::to_raw_pointer(val.name()),
                     *end = beg + val.name_length();
     return boost::hash_range(beg, end);
 }
开发者ID:danieljames,项目名称:interprocess,代码行数:6,代码来源:iunordered_set_index.hpp

示例5: size

    /** Returns the payload size of the body

        When this body is used with @ref message::prepare_payload,
        the Content-Length will be set to the payload size, and
        any chunked Transfer-Encoding will be removed.
    */
    static
    std::uint64_t
    size(value_type const& v)
    {
        return v.size();
    }
开发者ID:osquery,项目名称:third-party,代码行数:12,代码来源:basic_dynamic_body.hpp

示例6: encode

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

示例7: pow

value_type pow( const value_type a , const value_type b )
{
    // do the calculation in double precision...
    return value_type( std::pow( a.get_d() , b.get_d() ) );
}
开发者ID:Adikteev,项目名称:rtbkit-deps,代码行数:5,代码来源:gmp_integrate.cpp

示例8: encodedLength

 static std::size_t encodedLength(value_type const& value)
 {
     return value.size();
 }
开发者ID:DouglasHeriot,项目名称:ember-plus,代码行数:4,代码来源:StdString.hpp

示例9: as_string

 static
 std::string
 as_string(const value_type& value) {
     BOOST_ASSERT(value.is_string());
     return value.as_string();
 }
开发者ID:lucciano,项目名称:cocaine-core,代码行数:6,代码来源:context.cpp

示例10: end

 static
 const_iterator
 end(const value_type& value) {
     BOOST_ASSERT(value.is_object());
     return value.as_object().end();
 }
开发者ID:lucciano,项目名称:cocaine-core,代码行数:6,代码来源:context.cpp

示例11: begin

 static
 const_iterator
 begin(const value_type& value) {
     BOOST_ASSERT(value.is_array());
     return value.as_array().begin();
 }
开发者ID:lucciano,项目名称:cocaine-core,代码行数:6,代码来源:context.cpp

示例12: insert

		void insert( value_type v, N const& )
			{ base_type::insert( std::make_pair( v->get_id(), v ) ); }
开发者ID:VladyslavKurmaz,项目名称:cpp-atom,代码行数:2,代码来源:nmap.hpp

示例13:

static QString FlatDataTrait<Color>::toString(const value_type& d)
{ return QColor::fromRgba(d.toHex()).name(QColor::HexArgb).toUpper(); }
开发者ID:cguebert,项目名称:Panda,代码行数:2,代码来源:ColorDataWidget.cpp

示例14: erase

		void erase( value_type v, N const& )
			{ base_type::erase( v->get_id() ); }
开发者ID:VladyslavKurmaz,项目名称:cpp-atom,代码行数:2,代码来源:nmap.hpp

示例15: operator

 void operator () (value_type & port)
 {
   port->location (this->next_);
   this->next_.shift (0, GME_PORT_HEIGHT + GME_PORT_PADDING_Y);
 }
开发者ID:DOCGroup,项目名称:CoSMIC,代码行数:5,代码来源:Component_Decorator_Impl.cpp


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