EXT C++ Library - policy

The EXT C++ Library introduces a policy enumeration so the specializations of other EXT C++ library templates are consistently named.


Interface:

All EXT policy values live inside the struct ext::policy. The type of the values is ext::policy::type. See following code:

struct ext::policy {
    enum type {
        none,
        cached,
        // ...
    };

    private:
        policy (); // non-constructible
};

Currently following policy enums are defined:

The exception types are defined in "ext/ext_bits/extexcept" file, include the <ext/c++> header file.

Examples:

See ext::vartor or ext::accessor for example of use.

Remarks

Note that templates are not required to provide specialization for all policy values and more policies may be introduced in future versions of the EXT Library.


[index]