Mr.Docs
Mr.Docs The C++ Alliance
Download

Mr.Docs

    • Home
    • Demos
    • Installation
    • Getting Started
    • The Configuration File
    • Documenting the Code
    • Generators
    • Design Notes
    • Library Reference
    • Contributor’s Guide
    • License
Mr.Docs v0.0.5
  • Mr.Docs
    • master
    • develop
    • v0.8.0
    • v0.0.5
    • v0.0.4
    • v0.0.3
    • v0.0.2
    • v0.0.1
  • Mr.Docs
  • Reference
  • mrdocs
  • cast_or_null-07
master develop v0.8.0 v0.0.5 v0.0.4 v0.0.3 v0.0.2 v0.0.1

mrdocs::cast_or_null

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]]
std::add_pointer_t<std::remove_reference_t<To>>
cast_or_null(Polymorphic<From>* pp);

Return Value

The return value should not be discarded.

Created with MrDocs