PlayRho  2.0.0
An interactive physics engine & library.
playrho::detail::UnitMagnitudeChecker< T > Struct Template Reference

Unit magnitude constrained value checker. More...

#include <playrho/detail/UnitMagnitudeChecker.hpp>

Public Member Functions

auto operator() (const T &v) const noexcept -> decltype(begin(v), end(v), StripUnit(*begin(v)), static_cast< const char * >(nullptr))
 Value checking functor. More...
 

Detailed Description

template<typename T>
struct playrho::detail::UnitMagnitudeChecker< T >

Unit magnitude constrained value checker.

Note
This is meant to be used as a checker with types like Checked.
Template Parameters
TUnderlying type for this checker.
See also
Checked.

Member Function Documentation

◆ operator()()

template<typename T >
auto playrho::detail::UnitMagnitudeChecker< T >::operator() ( const T &  v) const -> decltype(begin(v), end(v), StripUnit(*begin(v)), static_cast<const char*>(nullptr))
inlinenoexcept

Value checking functor.

Returns
Null string if given value is valid, else a non-null string explanation.

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