41 #ifndef PB_DS_BINARY_HEAP_ENTRY_CMP_HPP
42 #define PB_DS_BINARY_HEAP_ENTRY_CMP_HPP
49 template<
typename _VTp,
typename Cmp_Fn,
typename _Alloc,
bool No_Throw>
53 template<
typename _VTp,
typename Cmp_Fn,
typename _Alloc>
61 template<
typename _VTp,
typename Cmp_Fn,
typename _Alloc>
65 typedef typename _Alloc::template rebind<_VTp> __rebind_v;
68 typedef typename __rebind_v::other::const_pointer entry;
71 struct type :
public Cmp_Fn
75 type(
const Cmp_Fn& other) : Cmp_Fn(other) { }
78 operator()(entry lhs, entry rhs)
const
79 {
return Cmp_Fn::operator()(*lhs, *rhs); }
85 #endif // #ifndef PB_DS_BINARY_HEAP_ENTRY_CMP_HPP
Entry compare, primary template.
GNU extensions for policy-based data structures for public use.