#include <jsonifier/Index.hpp>
Go to the source code of this file.
|
namespace | discord_core_api |
| The main namespace for the forward-facing interfaces.
|
|
|
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> |
DCA_INLINE unique_ptr< value_type, deleter > | discord_core_api::makeUnique (arg_types &&... args) |
| Helper function to create a unique_ptr for a non-array object.
|
|
template<typename value_type , typename... arg_types, std::enable_if_t< std::extent_v< value_type > !=0, int32_t > = 0> |
DCA_INLINE 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> |
DCA_INLINE unique_ptr< value_type, deleter > | discord_core_api::makeUnique (const uint64_t size) |
| Helper function to create a unique_ptr for a dynamic array.
|
|