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 an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template base_from_member

boost::base_from_member

Synopsis

// In header: <boost/utility/base_from_member.hpp>

template<typename MemberType, int UniqueID = 0> 
class base_from_member {
public:
  // construct/copy/destruct
  template<typename ... T, 
           typename EnableIf = typename ::boost::detail::enable_if_unrelated<base_from_member, T...>::type> 
    explicit base_from_member(T &&...) noexcept(BOOST_NOEXCEPT_EXPR(::new((void *) 0) MemberType(static_cast< T && >(x)...))));
};

Description

base_from_member public construct/copy/destruct

  1. template<typename ... T, 
             typename EnableIf = typename ::boost::detail::enable_if_unrelated<base_from_member, T...>::type> 
      explicit base_from_member(T &&... x) noexcept(BOOST_NOEXCEPT_EXPR(::new((void *) 0) MemberType(static_cast< T && >(x)...))));

PrevUpHomeNext