pairinteraction
A Rydberg Interaction Calculator
pairinteraction::traits::OpTraits< T > Struct Template Reference

Helper struct to extract whether a type supports certain operations. More...

#include <traits.hpp>

+ Collaboration diagram for pairinteraction::traits::OpTraits< T >:

Static Public Attributes

static constexpr bool has_equal_v = std::is_invocable_r_v<bool, std::equal_to<>, T, T>
 
static constexpr bool has_less_v = std::is_invocable_r_v<bool, std::less<>, T, T>
 

Detailed Description

template<typename T>
struct pairinteraction::traits::OpTraits< T >

Helper struct to extract whether a type supports certain operations.

Template Parameters
TThe type for which the existence of operations is to be checked.

Definition at line 63 of file traits.hpp.

Field Documentation

◆ has_equal_v

template<typename T >
constexpr bool pairinteraction::traits::OpTraits< T >::has_equal_v = std::is_invocable_r_v<bool, std::equal_to<>, T, T>
staticconstexpr

Definition at line 64 of file traits.hpp.

◆ has_less_v

template<typename T >
constexpr bool pairinteraction::traits::OpTraits< T >::has_less_v = std::is_invocable_r_v<bool, std::less<>, T, T>
staticconstexpr

Definition at line 65 of file traits.hpp.


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