OS Manuals

cereal_detail_PolymorphicVirtualCaster(3)

cereal::detail::PolymorphicVirtualCaster< Base, Derived > - Strongly typed derivation of PolymorphicCaster.

cereal::detail::PolymorphicVirtualCaster< Base, Derived >(3) Library Functions Manual cereal::detail::PolymorphicVirtualCaster< Base, Derived >(3)

cereal::detail::PolymorphicVirtualCaster< Base, Derived > - Strongly typed derivation of PolymorphicCaster.

#include </home/build/include/cereal/details/polymorphic_impl.hpp>

Inherits cereal::detail::PolymorphicCaster.


PolymorphicVirtualCaster ()
Inserts an entry in the polymorphic casting map for this pairing. void const * downcast (void const *const ptr) const override
Performs the proper downcast with the templated types. void * upcast (void *const ptr) const override
Performs the proper upcast with the templated types. std::shared_ptr< void > upcast (std::shared_ptr< void > const &ptr) const override
Performs the proper upcast with the templated types (shared_ptr version).

Public Member Functions inherited from cereal::detail::PolymorphicCaster
PolymorphicCaster (const PolymorphicCaster &)=default
PolymorphicCaster & operator= (const PolymorphicCaster &)=default
PolymorphicCaster (PolymorphicCaster &&) CEREAL_NOEXCEPT
PolymorphicCaster & operator= (PolymorphicCaster &&) CEREAL_NOEXCEPT

struct cereal::detail::PolymorphicVirtualCaster< Base, Derived >"Strongly typed derivation of PolymorphicCaster.

Inserts an entry in the polymorphic casting map for this pairing. Creates an explicit mapping between Base and Derived in both upwards and downwards directions, allowing void pointers to either to be properly cast assuming dynamic type information is available

Performs the proper downcast with the templated types.

Implements cereal::detail::PolymorphicCaster.

Performs the proper upcast with the templated types (shared_ptr version).

Implements cereal::detail::PolymorphicCaster.

Performs the proper upcast with the templated types.

Implements cereal::detail::PolymorphicCaster.

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

cereal 1.3.2-r6 · enterprise-packages · ingested 2026-10-10