libhatchet
Loading...
Searching...
No Matches
hxptr.hpp File Reference

Go to the source code of this file.

Classes

class  hxptr< T, deleter_t_ >

Functions

template<typename T, hxsystem_allocator_t allocator_ = hxsystem_allocator_current, hxalignment_t align_ = hxalignment, typename... args_t_>
hxptr< T > hxmake_ptr (args_t_ &&... args_) noexcept

Detailed Description

A unique owning pointer.

Function Documentation

◆ hxmake_ptr()

template<typename T, hxsystem_allocator_t allocator_ = hxsystem_allocator_current, hxalignment_t align_ = hxalignment, typename... args_t_>
hxptr< T > hxmake_ptr ( args_t_ &&... args_)
noexcept

hxmake_ptr<T, allocator, align>(args...) - Allocates and constructs an object of type T and returns it wrapped in an hxptr.

Equivalent to hxptr<T>(hxnew<T, allocator, align>(args...)). Will not return on failure.