mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Functions
misc.tcc File Reference
#include <sstream>
#include <typeinfo>
#include <algorithm>

Namespaces

 mf
 

Functions

template<typename T >
T * mf::advance_raw_ptr (T *ptr, std::ptrdiff_t diff) noexcept
 Advance a pointer ptr of any type by diff bytes. More...
 
template<typename T >
mf::clamp (T value, T minimum, T maximum)
 Clamp value between minimum and maximum value. More...
 
template<typename T >
mf::gcd (T a, T b)
 Compute greatest common divisor of a and b. More...