|
commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
|
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>
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.