BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Classes
bc::allocators::pa_detail Namespace Reference

Similar to the C++17 std::pmr::polymorphic_allocator. More...

Classes

struct  Allocator_Base
 
struct  Derived_Allocator
 

Detailed Description

Similar to the C++17 std::pmr::polymorphic_allocator.

The polymorphic_allocator accepts an Allocator object on construction and uses polymorphism to create an expression_template 'allocator.' All calls of allocate/deallocate are forwarded to the stated allocator. The polymorphic_allocator there-for, cannot be rebound.