MySQL 8.4.2
Source Code Documentation
add_with_saturate.h File Reference

Some utilities for saturating add. More...

#include <limits>
#include <type_traits>

Go to the source code of this file.

Functions

template<class T , class U >
AddWithSaturate (T a, U b)
 
template<class T , class U >
void AddWithSaturate (T a, U *b)
 

Detailed Description

Some utilities for saturating add.

Function Documentation

◆ AddWithSaturate() [1/2]

template<class T , class U >
void AddWithSaturate ( a,
U b 
)
inline

◆ AddWithSaturate() [2/2]

template<class T , class U >
T AddWithSaturate ( a,
U  b 
)
inline