Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_INTRUSIVE_OPTION_CONSTANT

BOOST_INTRUSIVE_OPTION_CONSTANT

Synopsis

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

BOOST_INTRUSIVE_OPTION_CONSTANT(OPTION_NAME, TYPE, VALUE, CONSTANT_NAME)

Description

Defines an option class of name OPTION_NAME that can be used to specify a constant of type TYPE with value VALUE...

...that after being combined with boost::intrusive::pack_options, will contain a CONSTANT_NAME static constant of value VALUE. Example:

//[includes and namespaces omitted for brevity]

//This macro will create the following class:
//    template<bool Enabled>
//    struct incremental
//    { unspecified_content };


PrevUpHomeNext