commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
comms::LenientPrioritizedCompare< T > Struct Template Reference

Like PrioritizedCompare, but over std::shared_ptr<T> for an arbitrary T that need not derive from Prioritized: the priority is resolved through get_priority (which handles Prioritizable types and a dynamic_cast probe). More...

#include <prioritized.hpp>

Detailed Description

template<typename T>
struct comms::LenientPrioritizedCompare< T >

Like PrioritizedCompare, but over std::shared_ptr<T> for an arbitrary T that need not derive from Prioritized: the priority is resolved through get_priority (which handles Prioritizable types and a dynamic_cast probe).

Passing the shared_ptr itself — not its raw .get() — is what lets get_priority route correctly.


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