Skip to content

RCAllocator

#include <sbio/util/rc.hh>
template<typename A, typename T, typename... Args>
concept RCAllocator

Defined in src/lib/sbio/util/rc.hh:94

Concept determining a valid RC Allocator.

An Allocator provides a static allocate function that constructs a type T. It must be constructed in place at a provided destination, but beyond this there are no restrictions. It will likely require accepting any arguments T may expect for its constructors.

  • A The Allocator type.

  • T The type the Allocator must create.

  • Args... Additional arguments for construction of T specifically.