DSC Engine
|
type template definitions More...
Go to the source code of this file.
Typedefs | |
template<bool B, typename T , typename F > | |
using | DSC::_if_ = typename __if__< B, T, F >::type |
Decides type based on a boolean expression. More... | |
template<typename T > | |
using | DSC::_no_ref_ = typename __no_ref__< T >::type |
gets rid of type reference More... | |
template<unsigned int C> | |
using | DSC::uint_best_fit = _if_< C< 256, unsigned char, _if_< C< 65536, unsigned short, unsigned int > > |
Chooses the smallest unsigned integer type that fits a constant. More... | |
Functions | |
template<class T > | |
_no_ref_< T > && | DSC::_move_ (T &&arg) |
Creates rvalue reference from object (useful in move semantics) More... | |
template<class T > | |
_no_ref_< T > && | DSC::_move_ (T &arg) |
template<typename T > | |
constexpr const T & | DSC::min (const T &first, const T &second) |
template<typename T , typename... Arguments> | |
constexpr const T & | DSC::min (const T &first, const Arguments &...args) |
template<typename T > | |
constexpr const T & | DSC::max (const T &first, const T &second) |
template<typename T , typename... Arguments> | |
constexpr const T & | DSC::max (const T &first, const Arguments &...args) |
template<typename T > | |
constexpr void | DSC::swap (T &first, T &second) |
type template definitions
using DSC::_if_ = typedef typename __if__<B,T,F>::type |
Decides type based on a boolean expression.
B | boolean expression |
T | type if B is true |
F | type if B is false |
if B is true, then _if_<B,T,F> evaluates to T, otherwise it evaluates to F
Equivalent of std::conditional
using DSC::_no_ref_ = typedef typename __no_ref__<T>::type |
gets rid of type reference
Equivalent of std::remove_reference
using DSC::uint_best_fit = typedef _if_< C<256, unsigned char, _if_<C<65536, unsigned short, unsigned int> > |
Chooses the smallest unsigned integer type that fits a constant.
C | an unsigned constant |
_no_ref_< T > && DSC::_move_ | ( | T && | arg | ) |
Creates rvalue reference from object (useful in move semantics)
[in] | arg | the target object |
Equivalent of std::move