+
+ static typename E::Wfq_sc *_e(E *e) { return E::wfq_elem(e); }
+};
+
+template< typename IMPL >
+class Sched_context_wfq
+{
+public:
+ bool operator <= (Sched_context_wfq const &o) const
+ { return _impl()._dl <= o._impl()._dl; }
+
+ bool operator < (Sched_context_wfq const &o) const
+ { return _impl()._dl < o._impl()._dl; }
+
+private:
+ IMPL const &_impl() const { return static_cast<IMPL const &>(*this); }
+ IMPL &_impl() { return static_cast<IMPL &>(*this); }