Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template pointer_plus_bits<, >

boost::intrusive::pointer_plus_bits<T *, NumBits>

Synopsis

// In header: <boost/intrusive/pointer_plus_bits.hpp>

template<typename T,  NumBits> 
struct pointer_plus_bits<, > {
  // types
  typedef  ;

  // public static functions
   () ;
   (, ) ;
   () ;
   (, ) ;

  // public data members
  static  Mask;
};

Description

This is the specialization to embed extra bits of information in a raw pointer. The extra bits are stored in the lower bits of the pointer.

pointer_plus_bits public static functions

  1.  ( n) ;
  2.  ( n,  p) ;
  3.  ( n) ;
  4.  ( n,  c) ;

PrevUpHomeNext