ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::concepts::random_access_incrementable Concept Reference

Concept that checks whether a type can be incremented with arbitrary integer values. More...

#include <detray/utils/concepts.hpp>

Concept definition

template<typename T>
concept detray::concepts::random_access_incrementable = requires(T i, const T j, int n) {
{ i += n } -> std::same_as<T &>;
{ j + n } -> std::same_as<T>;
{ n + j } -> std::same_as<T>;
{ i -= n } -> std::same_as<T &>;
{ j - n } -> std::same_as<T>;
}
Concept that checks whether a type can be incremented with arbitrary integer values.
Definition concepts.hpp:52

Detailed Description

Concept that checks whether a type can be incremented with arbitrary integer values.