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 T * ;

  // public static functions
  pointer (pointer);
  void (pointer &, pointer);
   (pointer);
  void (pointer &, );

  // public data members
  static const uintptr_t 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. pointer (pointer n);
  2. void (pointer & n, pointer p);
  3.  (pointer n);
  4. void (pointer & n,  c);

PrevUpHomeNext