Quick Links: |
void bslma::swap | ( | ManagedPtr< TARGET_TYPE > & | a, | |
ManagedPtr< TARGET_TYPE > & | b | |||
) |
Efficiently exchange the values of the specified a
and b
objects. This function provides the no-throw exception-safety guarantee.
bool bslma::operator== | ( | const ManagedPtrDeleter & | lhs, | |
const ManagedPtrDeleter & | rhs | |||
) |
Return true
if the specified lhs
and rhs
objects have the same value, and false
otherwise. Two ManagedPtrDeleter
objects have the same value if the corresponding values of their object
, factory
, and deleter
attributes are the same.
bool bslma::operator!= | ( | const ManagedPtrDeleter & | lhs, | |
const ManagedPtrDeleter & | rhs | |||
) |
Return true
if the specified lhs
and rhs
objects do not have the same value, and false
otherwise. Two ManagedPtrDeleter
objects do not have the same value if any of the corresponding values of their object
, factory
, and deleter
attributes are not the same.
bool bslma::operator== | ( | const StdTestAllocator< T1 > & | lhs, | |
const StdTestAllocator< T2 > & | rhs | |||
) | [inline] |
Return true
if the specified lhs
and rhs
are proxies for the same bslma::TestAllocator
object. This is a practical implementation of the STL requirement that two allocators compare equal if and only if memory allocated from one can be deallocated from the other. Note that the two allocators need not be instantiated on the same type in order to compare equal.
bool bslma::operator!= | ( | const StdTestAllocator< T1 > & | lhs, | |
const StdTestAllocator< T2 > & | rhs | |||
) | [inline] |
Return true
unless the specified lhs
and rhs
are proxies for the same bslma::TestAllocator
object, in which case return false
. This is a practical implementation of the STL requirement that two allocators compare equal if and only if memory allocated from one can be deallocated from the other. Note that the two allocators need not be instantiated on the same type in order to compare equal.
bool bslma::operator== | ( | const StdTestAllocator< TYPE > & | lhs, | |
const TestAllocator * | rhs | |||
) | [inline] |
Return true
if the specified lhs
is a proxy for the specified rhs
, and false
otherwise.
bool bslma::operator!= | ( | const StdTestAllocator< TYPE > & | lhs, | |
const TestAllocator * | rhs | |||
) | [inline] |
Return true
unless the specified lhs
is a proxy for the specified rhs
, in which case return false
.
bool bslma::operator== | ( | const TestAllocator * | lhs, | |
const StdTestAllocator< TYPE > & | rhs | |||
) | [inline] |
Return true
if the specified rhs
is a proxy for the specified lhs
, and false
otherwise.
bool bslma::operator!= | ( | const TestAllocator * | lhs, | |
const StdTestAllocator< TYPE > & | rhs | |||
) | [inline] |
Return true
unless the specified rhs
is a proxy for the specified lhs
, in which case return false
.