MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UI::detail::ValidBoundForTargetType Concept Reference

#include <MRViewer/MRUIStyle.h>

Concept definition

template<typename Bound, typename Target>
std::same_as<Bound, Target> ||
( VectorTraits<Bound>::size == 1 && std::same_as<typename VectorTraits<Bound>::BaseType, typename VectorTraits<Target>::BaseType> )
Definition MRUIStyle.h:378
static constexpr int size
Definition MRVectorTraits.h:22
T BaseType
The base template handles scalars (or just non-vectors).
Definition MRVectorTraits.h:21

Detailed Description

Whether Bound is a valid min/max bound for Target. That is, either the same type, or if Target is a vector, Bound can also be a scalar of the same type.