Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template pack_options

boost::intrusive::pack_options

Synopsis

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

template<typename DefaultOptions,  Options> 
struct pack_options {
  // types
  typedef  ;
};

Description

This class is a utility that takes:

  • a default options class defining initial static constant and typedefs

  • several options defined with BOOST_INTRUSIVE_OPTION_CONSTANT and BOOST_INTRUSIVE_OPTION_TYPE

and packs them together in a new type that defines all options as member typedefs or static constant values. Given options of form:

the following expression

will create a type that will contain the following typedefs/constants

If an option is specified in the default options argument and later redefined as an option, the last definition will prevail.


PrevUpHomeNext