Struct which defines a custom comparison object that can be used with std::sets of std::unique_ptrs.
More...
#include <utility.h>
|
template<class T > |
bool | operator() (const std::unique_ptr< T > &a, const std::unique_ptr< T > &b) const |
| This is already what the default operator< comparison for std::unique_ptrs does, we are not adding anything here. More...
|
|
template<class T > |
bool | operator() (const std::unique_ptr< T > &a, const T *const &b) const |
| operator< comparison when rhs is a dumb pointer More...
|
|
template<class T > |
bool | operator() (const T *const &a, const std::unique_ptr< T > &b) const |
| operator< comparison when lhs is a dumb pointer More...
|
|
Struct which defines a custom comparison object that can be used with std::sets of std::unique_ptrs.
Definition at line 503 of file utility.h.
◆ is_transparent
◆ operator()() [1/3]
template<class T >
bool libMesh::Utility::CompareUnderlying::operator() |
( |
const std::unique_ptr< T > & |
a, |
|
|
const std::unique_ptr< T > & |
b |
|
) |
| const |
|
inline |
This is already what the default operator< comparison for std::unique_ptrs does, we are not adding anything here.
Definition at line 517 of file utility.h.
519 return a.get() < b.get();
◆ operator()() [2/3]
template<class T >
bool libMesh::Utility::CompareUnderlying::operator() |
( |
const std::unique_ptr< T > & |
a, |
|
|
const T *const & |
b |
|
) |
| const |
|
inline |
operator< comparison when rhs is a dumb pointer
Definition at line 526 of file utility.h.
◆ operator()() [3/3]
template<class T >
bool libMesh::Utility::CompareUnderlying::operator() |
( |
const T *const & |
a, |
|
|
const std::unique_ptr< T > & |
b |
|
) |
| const |
|
inline |
operator< comparison when lhs is a dumb pointer
Definition at line 535 of file utility.h.
The documentation for this struct was generated from the following file: