35namespace openPMD::auxiliary
52std::shared_ptr<T> shareRaw(
T *x)
54 return std::shared_ptr<T>(x, [](
T *) {});
58std::shared_ptr<T const> shareRaw(
T const *x)
60 return std::shared_ptr<T const>(x, [](
T const *) {});
64auto shareRaw(
T &c) -> std::shared_ptr<typename T::value_type>
66 using value_type =
typename std::remove_pointer<
decltype(c.data())>::type;
67 return std::shared_ptr<value_type>(c.data(), [](value_type *) {});
71auto shareRaw(
T const &c) -> std::shared_ptr<typename T::value_type>
73 using value_type =
typename std::remove_pointer<
decltype(c.data())>::type;
74 return std::shared_ptr<value_type>(c.data(), [](value_type *) {});
@ T
time
Definition UnitDimension.hpp:41