|
guanaqo
1.0.0-alpha.27
Utilities for scientific software
|
Pointer wrappers, lifetime helpers, and utility deleters.
Files | |
| file | copyable-unique_ptr.hpp |
| Clone-on-copy unique_ptr wrapper. | |
| file | lifetime.hpp |
| Fallback implementations for std::start_lifetime_as. | |
| file | noop-delete.hpp |
| Deleter that skips deallocation. | |
Classes | |
| struct | guanaqo::copyable_unique_ptr< T > |
| std::unique_ptr is move-only, this class wraps such a pointer and provides copy operations as well. More... | |
| struct | guanaqo::noop_delete< T > |
| Deleter for std::unique_ptr that just destructs the object, without deallocating. More... | |
Functions | |
| template<class T> | |
| T * | guanaqo::start_lifetime_as_array (void *p, size_t n) noexcept |
| template<class T> | |
| const T * | guanaqo::start_lifetime_as_array (const void *p, size_t n) noexcept |
| template<class T> | |
| T * | guanaqo::start_lifetime_as (void *p) noexcept |
| template<class T> | |
| const T * | guanaqo::start_lifetime_as (const void *p) noexcept |
|
noexcept |
#include <guanaqo/lifetime.hpp>
Definition at line 29 of file lifetime.hpp.
|
noexcept |
#include <guanaqo/lifetime.hpp>
Definition at line 38 of file lifetime.hpp.
|
noexcept |
#include <guanaqo/lifetime.hpp>
Definition at line 49 of file lifetime.hpp.
|
noexcept |
#include <guanaqo/lifetime.hpp>
Definition at line 55 of file lifetime.hpp.