Re: C++ pushback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 27 April 2006 17:23, Robert Hancock wrote:
> Denis Vlasenko wrote:
> > Random example. gcc-3.4.3/include/g++-v3/bitset:
> > 
> >   template<size_t _Nw>
> >     struct _Base_bitset
> >     {
> >       typedef unsigned long _WordT;
> > 
> >       /// 0 is the least significant word.
> >       _WordT            _M_w[_Nw];
> > 
> >       _Base_bitset() { _M_do_reset(); }
> > ...
> >       void
> >       _M_do_set()
> >       {
> >         for (size_t __i = 0; __i < _Nw; __i++)
> >           _M_w[__i] = ~static_cast<_WordT>(0);
> >       }
> >       void
> >       _M_do_reset() { memset(_M_w, 0, _Nw * sizeof(_WordT)); }
> > ...
> > 
> 
> ..
> 
> > Why _M_do_reset() is not inlined?
> 
> It is.. anything declared as part of the declaration is considered 
> inline by default.

You're right, I forgot about that 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux