libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
Typedefs | Functions
from_unique_ptr.hpp File Reference

from::unique_ptr based on std::unique_ptr More...

#include <concepts>
#include <memory/from_allocator.hpp>
#include <memory/from_delay_delete.hpp>
#include <memory>

Go to the source code of this file.

Typedefs

template<typename T , typename AllocatorTag = from::default_empty_base_allocator_tag>
using from::unique_ptr = std::unique_ptr< T, from::delay_delete< T, AllocatorTag > >
 std::unique_ptr with from::allocator and from::delay_delete.
 

Functions

template<typename T , typename AllocatorTag = from::default_empty_base_allocator_tag, typename... Args>
from::unique_ptr< T, AllocatorTag > from::make_unique (Args &&... args)
 from::unique_ptr make_unique implementation
 

Detailed Description

from::unique_ptr based on std::unique_ptr

Copyright 2024 libER ELDEN RING API library

Function Documentation

◆ make_unique()

template<typename T , typename AllocatorTag = from::default_empty_base_allocator_tag, typename... Args>
from::unique_ptr< T, AllocatorTag > from::make_unique ( Args &&...  args)

from::unique_ptr make_unique implementation

Uses a delay deleter from::delay_delete.

Template Parameters
Ttype to point to
AllocatorTagallocator type
Parameters
argstype constructor arguments
Returns
from::unique_ptr<T, AllocatorTag> resulting pointer