Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::intrusive::pointer_traits< T * > Struct Template Reference

Specialization of pointer_traits for raw pointers. More...

#include <pointer_traits.hpp>

Classes

struct  rebind_pointer
 

Public Types

typedef T element_type
 
typedef Tpointer
 
typedef std::ptrdiff_t difference_type
 
typedef
boost::intrusive::detail::unvoid_ref
< element_type >::type 
reference
 
template<class U >
using rebind = U *
 

Static Public Member Functions

static pointer pointer_to (reference r)
 Returns: addressof(r) More...
 
template<class U >
static pointer static_cast_from (U *uptr)
 Returns: static_cast<pointer>(uptr) More...
 
template<class U >
static pointer const_cast_from (U *uptr)
 Returns: const_cast<pointer>(uptr) More...
 
template<class U >
static pointer dynamic_cast_from (U *uptr)
 Returns: dynamic_cast<pointer>(uptr) More...
 

Detailed Description

template<typename T>
struct boost::intrusive::pointer_traits< T * >

Specialization of pointer_traits for raw pointers.

Member Typedef Documentation

template<typename T >
typedef std::ptrdiff_t boost::intrusive::pointer_traits< T * >::difference_type
template<typename T >
typedef T boost::intrusive::pointer_traits< T * >::element_type
template<typename T >
typedef T* boost::intrusive::pointer_traits< T * >::pointer
template<typename T >
template<class U >
using boost::intrusive::pointer_traits< T * >::rebind = U*
template<typename T >
typedef boost::intrusive::detail::unvoid_ref<element_type>::type boost::intrusive::pointer_traits< T * >::reference

Member Function Documentation

template<typename T >
template<class U >
static pointer boost::intrusive::pointer_traits< T * >::const_cast_from ( U *  uptr)
inlinestatic

Returns: const_cast<pointer>(uptr)

template<typename T >
template<class U >
static pointer boost::intrusive::pointer_traits< T * >::dynamic_cast_from ( U *  uptr)
inlinestatic

Returns: dynamic_cast<pointer>(uptr)

template<typename T >
static pointer boost::intrusive::pointer_traits< T * >::pointer_to ( reference  r)
inlinestatic

Returns: addressof(r)

References boost::addressof().

template<typename T >
template<class U >
static pointer boost::intrusive::pointer_traits< T * >::static_cast_from ( U *  uptr)
inlinestatic

Returns: static_cast<pointer>(uptr)


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