Can be used separately from each other?
template . . .
template<typename Type> f(Type instance); , Type instance, . , , , /.
( ++ 11)
vector:
template<
class T,
class Allocator = std::allocator<T>
> class vector;
:
explicit vector( const Allocator& alloc = Allocator() );
Allocator alloc. . Allocator. , , , , Allocator, Allocator ( , , , , ).
-, Allocator, , , .
, , vector, - DerivedAllocator, Allocator, . , :
vector<T> v( DerivedAllocator<T>() );
.
Allocator, ?
- , ( ). : SRamAllocator, RamAllocator ..
. , - , , , . . , , "", free ing. new/delete.
Allocator, ?
. , . . - " ". , , CPU/.
, , .
, , .
. pre-++ 11 , . Allocator, . Allocator() .
, , ... . , ( ).