PlayRho  2.0.0
An interactive physics engine & library.
NonZero.hpp File Reference

Definition of the NonZero value checked types. More...

#include <type_traits>
#include <playrho/detail/Checked.hpp>
#include <playrho/detail/NonZeroChecker.hpp>
Include dependency graph for NonZero.hpp:

Namespaces

 playrho
 

Typedefs

template<typename T >
using playrho::NonNull = std::enable_if_t< std::is_pointer_v< T >, detail::Checked< T, detail::NonZeroChecker< T > >>
 Non-null constrained value type.
 
template<typename T >
using playrho::NonNullFF = std::enable_if_t< std::is_pointer_v< T >, detail::Checked< T, detail::NonZeroChecker< T >, true > >
 Fast failing non-null constrained value type.
 
template<typename T >
using playrho::NonZero = std::enable_if_t<!std::is_pointer_v< T >, detail::Checked< T, detail::NonZeroChecker< T > >>
 Non-zero constrained value type.
 
template<typename T >
using playrho::NonZeroFF = std::enable_if_t<!std::is_pointer_v< T >, detail::Checked< T, detail::NonZeroChecker< T >, true > >
 Fast failing non-zero constrained value type.
 

Detailed Description

Definition of the NonZero value checked types.