Belle II Software development
|
Adapter of a category function to find the common category of several objects. More...
#include <Common.h>
Public Member Functions | |
template<class Ts , class Category = decltype(m_functor(*std::declval<Ts>().begin()))> | |
std::optional< Category > | operator() (const Ts &ts) const |
Returns the common category value of a range. | |
template<class T1 , class T2 , class Category = decltype(m_functor(std::declval<T1>()))> | |
std::optional< Category > | operator() (const T1 &t1, const T2 &t2) const |
Returns the common category of two values. | |
Private Attributes | |
AFunctor | m_functor |
Memory for the nested functor. | |
Adapter of a category function to find the common category of several objects.
|
inline |
Returns the common category of two values.
In case the category value differ between the values return empty optional
Definition at line 50 of file Common.h.
|
inline |
Returns the common category value of a range.
In case the category value differ between the values return empty optional.