cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
metric_traits.hpp File Reference
#include <type_traits>
#include <limits>
#include <cpp-toolbox/metrics/base_metric.hpp>
Include dependency graph for metric_traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::metrics::metric_traits< Metric >
 
struct  toolbox::metrics::metric_traits< L2Metric< T > >
 
struct  toolbox::metrics::metric_traits< L1Metric< T > >
 
struct  toolbox::metrics::is_metric< T >
 
struct  toolbox::metrics::is_metric< base_metric_t< Derived, ElementType > >
 

Namespaces

namespace  toolbox
 
namespace  toolbox::metrics
 

Variables

template<typename Metric >
constexpr bool toolbox::metrics::is_symmetric_metric_v = metric_traits<Metric>::is_symmetric
 
template<typename Metric >
constexpr bool toolbox::metrics::is_normalized_metric_v = metric_traits<Metric>::is_normalized
 
template<typename Metric >
constexpr bool toolbox::metrics::has_squared_form_v = metric_traits<Metric>::has_squared_form
 
template<typename T >
constexpr bool toolbox::metrics::is_metric_v = is_metric<T>::value