Public Types | Static Public Member Functions | Static Public Attributes | List of all members
util::quantities::concepts::details::category_traits< Cat > Struct Template Reference

#include <intervals.h>

Public Types

using category_t = Cat
 The categories the traits are about. More...
 

Static Public Member Functions

template<typename OC >
static constexpr bool compatible_with ()
 Returns whether the category OC is "compatible" with this one. More...
 

Static Public Attributes

static constexpr bool has_name = category_has_name<category_t>()
 Whether the category supports name() call. More...
 

Detailed Description

template<typename Cat>
struct util::quantities::concepts::details::category_traits< Cat >

Definition at line 1060 of file intervals.h.

Member Typedef Documentation

template<typename Cat >
using util::quantities::concepts::details::category_traits< Cat >::category_t = Cat

The categories the traits are about.

Definition at line 1062 of file intervals.h.

Member Function Documentation

template<typename Cat >
template<typename OC >
static constexpr bool util::quantities::concepts::details::category_traits< Cat >::compatible_with ( )
inlinestatic

Returns whether the category OC is "compatible" with this one.

Definition at line 1069 of file intervals.h.

1070  { return util::is_any_of_v<OC, NoCategory, category_t>; }

Member Data Documentation

template<typename Cat >
constexpr bool util::quantities::concepts::details::category_traits< Cat >::has_name = category_has_name<category_t>()
static

Whether the category supports name() call.

Definition at line 1065 of file intervals.h.


The documentation for this struct was generated from the following file: