![]() |
Home | Libraries | People | FAQ | More |
boost::mpi::allocator<void> — Allocator specialization for void value types.
// In header: <boost/mpi/allocator.hpp> class allocator<> { public: // types typedef ; typedef ; typedef ; typedef ; // Holds the size of objects. typedef ; // Holds the number of elements between two pointers. typedef ; // A reference to an object of typeT. typedef ; // A reference to a constant object of typeT. // member classes/structs/unions struct rebind { // types typedef ; }; // construct/copy/destruct (); ~(); // public member functions () ; (, = ); (, ); () ; (, ); (); };
The void specialization of allocator is useful only for rebinding to another, different value type.
allocator public member functions( x) ;
Returns the address of object x.
( n, = );
Allocate enough memory for n elements of type T.
Parameters: |
|
||
Returns: |
a pointer to the newly-allocated memory |
( p, );
Deallocate memory referred to by the pointer p.
Parameters: |
|
() ;
Returns the maximum number of elements that can be allocated with allocate().
( p, val);
Construct a copy of val at the location referenced by p.
( p);
Destroy the object referenced by p.