mrdocs::isa_or_null
Return true if pointer is non‐null and referent is of type To.
Synopsis
Declared in <mrdocs/ADT/Polymorphic.hpp>
template<
class To,
class From>
requires ( std::derived_from<std::remove_cvref_t<To>, std::remove_cvref_t<From>> )
[[nodiscard]]
bool
isa_or_null(Polymorphic<From> const* pp) noexcept;
Parameters
| Name | Description |
|---|---|
pp |
A polymorphic value‐type. |
Created with MrDocs