Skip to content

sbio::RCAllocator

template<typename A, typename T, typename... Args>
concept= requires(std::size_t size, void* dest, Args&&... args) {
{ A::allocate(size, dest, std::forward<Args>(args)...) } -> std::same_as<void>;
};

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. templateparam