senf::SocketPolicyIsBaseOf< Base, Derived > Struct Template Reference

Check policy compatibility. More...

#include <senf/Socket/SocketPolicy.hh>

Detailed Description

template<class Base, class Derived>
struct senf::SocketPolicyIsBaseOf< Base, Derived >

Check policy compatibility.

This template metafunction checks, whether the SocketPolicy Derived is more specialized than Base (and therefore a SocketHandle with policy Derived is convertible to a SocketHandle with policy Base).

The metafunction will return true (that is inherits from boost::true_type, see the Boost.MPL library documentation for more information) if each policy class in Base is a baseclass of (or the same as) the corresponding policy class in Derived.

See also
The Policy Framework

Definition at line 522 of file SocketPolicy.hh.


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