tenno 0.1.0
Loading...
Searching...
No Matches
memory.hpp File Reference
#include <tenno/mutex.hpp>
#include <tenno/types.hpp>
#include <tenno/utility.hpp>
#include <type_traits>

Go to the source code of this file.

Data Structures

struct  tenno::allocator< T >
 
struct  tenno::default_delete< T >
 
class  tenno::shared_ptr< T, Deleter, Alloc >
 A shared pointer. More...
 
struct  tenno::shared_ptr< T, Deleter, Alloc >::control_block
 
class  tenno::weak_ptr< T >
 A weak pointer. More...
 
class  tenno::unique_ptr< T, Deleter >
 A shared pointer. More...
 

Namespaces

namespace  tenno
 

Functions

template<class T , class... Args>
std::enable_if<!std::is_array< T >::value, shared_ptr< T > >::type tenno::make_shared (Args &&... args)
 Create a shared pointer with the given arguments.
 
template<class T >
std::enable_if< std::is_array< T >::value, shared_ptr< T > >::type tenno::make_shared (tenno::size n)
 
template<class T >
shared_ptr< T > tenno::make_shared ()
 Default initialize a shared pointer.
 
template<class T , class Alloc , class... Args>
tenno::shared_ptr< T > tenno::allocate_shared (Alloc &alloc, Args &&...args) noexcept
 Create a shared pointer with the given arguments and allocator.
 
template<class T , class Alloc >
shared_ptr< T > tenno::allocate_shared (Alloc &alloc) noexcept
 Default initialize a shared pointer with the given allocator.
 
template<class T , class... Args>
constexpr unique_ptr< T > tenno::make_unique (Args &&...args)
 Create a unique pointer with the given arguments.