density
C++11 library for paged memory management, function queues, heterogeneous queues and lifo memory management
f_none Struct Reference

#include <runtime_type.h>

Detailed Description

Tag type that can be included in a feature_list without affecting the feature tuple. This peseudo-feature is useful to conditionally add features to a feature_list, for example using std::conditional.

In this code f_none is used to define a conditional type list.

template <bool CAN_COPY, bool CAN_MOVE>
using ConditionalFeatures = feature_list<
f_default_construct,
typename std::conditional<CAN_COPY, f_copy_construct, f_none>::type,
typename std::conditional<CAN_MOVE, f_move_construct, f_none>::type,
f_destroy>;

The documentation for this struct was generated from the following file: