mrdocs::isa
Return true if the polymorphic object holds a value 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(Polymorphic<From> const& p) noexcept;
Return Value
true if the polymorphic object holds a value of type To.
|
The return value should not be discarded. |
Parameters
Name |
Description |
p |
A polymorphic value‐type. |
Created with MrDocs