Dune::ISTLAllocator Class Reference
[ISTL]
#include <allocator.hh>
Detailed Description
Default allocator for ISTL.The default allocator for the sparse matrix vector classes:
- uses malloc and free
- member templates for type safety to the outside
- is a singleton
- illustrates state handling through counter
- throws std::bad_alloc just as new does
Public Types | |
typedef int | size_type |
The size type. | |
typedef std::ptrdiff_t | difference_type |
The difference type to meassure the distance between two pointers. | |
Static Public Member Functions | |
template<class T> | |
static T * | malloc (std::size_t nmemb) |
allocate array of nmemb objects of type T | |
template<class T> | |
static void | free (T *p) |
release memory previously allocated with malloc member |
The documentation for this class was generated from the following file: