Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit dcea408971.
PrevUpHomeNext

Struct template pointer_has_rebind

boost::intrusive::pointer_has_rebind

Synopsis

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

template<typename Ptr, typename U> 
struct pointer_has_rebind {
  // member classes/structs/unions
  template<typename V> 
  struct any {
    // construct/copy/destruct
    any(const V &);
  };

  // public static functions
  template<typename X> 
    static char test(int, typename X::template rebind< U > *);
  template<typename X> static int test(any< int >, void *);

  // public data members
  static const bool value;
};

Description

pointer_has_rebind public static functions

  1. template<typename X> static char test(int, typename X::template rebind< U > *);
  2. template<typename X> static int test(any< int >, void *);

PrevUpHomeNext