WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
intrusive_shared_ptr.hpp File Reference
#include <concepts>
#include <cstddef>
#include <memory>
#include <utility>

Go to the source code of this file.

Classes

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

Namespaces

namespace  slp
 

Functions

template<typename T , typename... Args>
IntrusiveSharedPtr< T > slp::make_intrusive_shared (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 > slp::allocate_intrusive_shared (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.