Teuchos - Trilinos Tools Package Version of the Day
|
Declaration of Teuchos::Details::Allocator, a tracking and logging implementation of the C++ Standard Library's Allocator concept. More...
#include <Teuchos_ConfigDefs.hpp>
#include <iostream>
#include <limits>
#include <type_traits>
#include <typeinfo>
Go to the source code of this file.
Classes | |
class | Teuchos::Details::AllocationLogger |
Logging implementation used by Allocator (see below). More... | |
class | Teuchos::Details::Allocator< T > |
Optional tracking allocator for Teuchos Memory Management classes. More... | |
struct | Teuchos::Details::Allocator< T >::rebind< U > |
Mapping to an Allocator for a different type U . More... | |
Namespaces | |
namespace | Teuchos |
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines. | |
Functions | |
template<class T , class U > | |
bool | Teuchos::Details::operator== (const Allocator< T > &, const Allocator< U > &) |
Return true if and only if the two input Allocator instances are interchangeable. | |
template<class T , class U > | |
bool | Teuchos::Details::operator!= (const Allocator< T > &a_t, const Allocator< U > &a_u) |
Return ! (a_t == a_u) (see above). | |
Declaration of Teuchos::Details::Allocator, a tracking and logging implementation of the C++ Standard Library's Allocator concept.
Definition in file Teuchos_Details_Allocator.hpp.
bool Teuchos::Details::operator== | ( | const Allocator< T > & | , |
const Allocator< U > & | ) |
Return true if and only if the two input Allocator instances are interchangeable.
All instances of our Allocator class use the same memory space, memory pool, and allocation mechanism. Thus, by this function returning true, we state that all instances of our Allocator class are interchangeable.
Definition at line 379 of file Teuchos_Details_Allocator.hpp.