__gnu_cxx::_Relative_pointer_impl< _Tp > Class Template Reference

A storage policy for use with _Pointer_adapter<> which stores the pointer's address as an offset value which is relative to its own address. More...

List of all members.

Public Types

Public Member Functions


Detailed Description

template<typename _Tp>
class __gnu_cxx::_Relative_pointer_impl< _Tp >

A storage policy for use with _Pointer_adapter<> which stores the pointer's address as an offset value which is relative to its own address.

This is intended for pointers within shared memory regions which might be mapped at different addresses by different processes. For null pointers, a value of 1 is used. (0 is legitimate sometimes for nodes in circularly linked lists) This value was chosen as the least likely to generate an incorrect null, As there is no reason why any normal pointer would point 1 byte into its own pointer address.

Definition at line 99 of file pointer.h.


The documentation for this class was generated from the following file:

Generated on Thu Jul 23 21:17:20 2009 for libstdc++ by  doxygen 1.5.8