Gromacs  2026.0-dev-20241204-d69d709
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
allocator.h File Reference
#include <cstddef>
#include <memory>
#include <new>
#include "gromacs/utility/basedefinitions.h"
+ Include dependency graph for allocator.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares gmx::Allocator template whose allocation functionality is configured both by type of object allocated and a policy class that configures the necessary matching malloc and free operation.

Author
Erik Lindahl erik..nosp@m.lind.nosp@m.ahl@g.nosp@m.mail.nosp@m..com
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Classes

class  gmx::Allocator< T, AllocationPolicy >
 Policy-based memory allocator. More...
 

Functions

template<class T1 , class Policy1 , class T2 , class Policy2 >
bool gmx::operator== (const Allocator< T1, Policy1 > &a, const Allocator< T2, Policy2 > &b)
 Return true if two allocators are identical. More...
 
template<class T1 , class Policy1 , class T2 , class Policy2 >
bool gmx::operator!= (const Allocator< T1, Policy1 > &a, const Allocator< T2, Policy2 > &b)
 Return true if two allocators are different.