Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::detail::SharedPointerPolicy< ObjT > Struct Template Reference

Pool pointer policy that holds objects via std::shared_ptr. More...

#include <pool.hpp>

Public Types

using PointerType = std::shared_ptr<ObjT>
 The held pointer type.

Static Public Member Functions

static PointerType FromObj (ObjT d)
 Make a held pointer from an object value.
static PointerType DefaultConstructed ()
 Make a held pointer to a default-constructed object.

Detailed Description

template<typename ObjT>
struct bertini::detail::SharedPointerPolicy< ObjT >

Pool pointer policy that holds objects via std::shared_ptr.

Member Typedef Documentation

◆ PointerType

template<typename ObjT>
using bertini::detail::SharedPointerPolicy< ObjT >::PointerType = std::shared_ptr<ObjT>

The held pointer type.

Member Function Documentation

◆ DefaultConstructed()

template<typename ObjT>
PointerType bertini::detail::SharedPointerPolicy< ObjT >::DefaultConstructed ( )
inlinestatic

Make a held pointer to a default-constructed object.

◆ FromObj()

template<typename ObjT>
PointerType bertini::detail::SharedPointerPolicy< ObjT >::FromObj ( ObjT d)
inlinestatic

Make a held pointer from an object value.