DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
UniquePtr.hpp File Reference
#include <jsonifier/Index.hpp>
Include dependency graph for UniquePtr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes and Structures

class  discord_core_api::unique_ptr< value_type, deleter >
 A smart pointer class that provides unique ownership semantics. More...
 
class  discord_core_api::unique_ptr< value_type[], deleter >
 Specialization of unique_ptr for arrays. More...
 

Namespaces

namespace  discord_core_api
 The main namespace for the forward-facing interfaces.
 

Functions

template<typename value_type , typename deleter = std::default_delete<value_type>, typename... arg_types, std::enable_if_t<!std::is_array_v< value_type >, int32_t > = 0>
unique_ptr< value_type, deleter > discord_core_api::makeUnique (arg_types &&... args)
 Helper function to create a unique_ptr for a non-array object. More...
 
template<typename value_type , typename... arg_types, std::enable_if_t< std::extent_v< value_type > !=0, int32_t > = 0>
void discord_core_api::makeUnique (arg_types &&...)=delete
 Deleted overload for creating unique_ptr for static arrays.
 
template<typename value_type , typename deleter = std::default_delete<value_type>, std::enable_if_t< std::is_array_v< value_type > &&std::extent_v< value_type >==0, int32_t > = 0>
unique_ptr< value_type, deleter > discord_core_api::makeUnique (const uint64_t size)
 Helper function to create a unique_ptr for a dynamic array. More...