WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
IntrusiveSharedPtr.hpp File Reference
#include <cstddef>
#include <memory>
#include <utility>

Go to the source code of this file.

Classes

class  sleipnir::IntrusiveSharedPtr< T >
 A custom intrusive shared pointer implementation without thread synchronization overhead. More...
 

Namespaces

namespace  sleipnir
 

Functions

template<typename T , typename... Args>
IntrusiveSharedPtr< T > sleipnir::MakeIntrusiveShared (Args &&... args)
 Constructs an object of type T and wraps it in an intrusive shared pointer using args as the parameter list for the constructor of T.
 
template<typename T , typename Alloc , typename... Args>
IntrusiveSharedPtr< T > sleipnir::AllocateIntrusiveShared (Alloc alloc, Args &&... args)
 Constructs an object of type T and wraps it in an intrusive shared pointer using alloc as the storage allocator of T and args as the parameter list for the constructor of T.