dune-istl
2.1.1
|
Default allocator for ISTL. More...
#include <dune/istl/allocator.hh>
Public Types | |
typedef std::size_t | 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 (size_type nmemb) |
allocate array of nmemb objects of type T | |
template<class T > | |
static void | free (T *p) |
release memory previously allocated with malloc member |
Default allocator for ISTL.
The default allocator for the sparse matrix vector classes:
typedef std::ptrdiff_t Dune::ISTLAllocator::difference_type |
The difference type to meassure the distance between two pointers.
typedef std::size_t Dune::ISTLAllocator::size_type |
The size type.
static void Dune::ISTLAllocator::free | ( | T * | p | ) | [inline, static] |
release memory previously allocated with malloc member
static T* Dune::ISTLAllocator::malloc | ( | size_type | nmemb | ) | [inline, static] |
allocate array of nmemb objects of type T