Home | Libraries | People | FAQ | More |
boost::intrusive::pointer_traits<T *>
// In header: <boost/intrusive/pointer_traits.hpp> template<typename T> struct pointer_traits<T *> { // types typedef T element_type; typedef T * pointer; typedef std::ptrdiff_t difference_type; typedef T & reference; typedef unspecified reference; // member classes/structs/unions template<typename U> struct rebind_pointer { // types typedef U * type; }; // public static functions static pointer pointer_to(reference); template<typename U> static pointer static_cast_from(U *); template<typename U> static pointer const_cast_from(U *); template<typename U> static pointer dynamic_cast_from(U *); };
Specialization of pointer_traits for raw pointers
pointer_traits
public static functionsstatic pointer pointer_to(reference r);
Returns: addressof(r)
template<typename U> static pointer static_cast_from(U * uptr);
Returns: static_cast<pointer>(uptr)
template<typename U> static pointer const_cast_from(U * uptr);
Returns: const_cast<pointer>(uptr)
template<typename U> static pointer dynamic_cast_from(U * uptr);
Returns: dynamic_cast<pointer>(uptr)