cds
2.3.2
|
Metafunction converting option list to traits. More...
#include <cds/container/mspriority_queue.h>
Public Types | |
typedef implementation_defined | type |
Metafunction result. | |
Metafunction converting option list to traits.
Options
are:
opt::buffer
- the buffer type for heap array. Possible type are: opt::v::initiaized_static_buffer
, opt::v::initialized_dynamic_buffer
. Default is opt::v::initialized_dynamic_buffer
. You may specify any type of values for the buffer since at instantiation time the buffer::rebind
member metafunction is called to change the type of values stored in the buffer.opt::compare
- priority compare functor. No default functor is provided. If the option is not specified, the opt::less
is used.opt::less
- specifies binary predicate used for priority compare. Default is std::less<T>
.opt::lock_type
- lock type. Default is cds::sync::spin
.opt::back_off
- back-off strategy. Default is cds::backoff::yield
opt::allocator
- allocator (like std::allocator
) for the values of queue's items. Default is CDS_DEFAULT_ALLOCATORopt::move_policy
- policy for moving item's value. Default is opt::v::assignment_move_policy
. If the compiler supports move semantics it would be better to specify the move policy based on the move semantics for type T
.opt::stat
- internal statistics. Available types: mspriority_queue::stat
, mspriority_queue::empty_stat
(the default, no overhead)