Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
checked_math.h File Reference

(08e24b2ba6847221abd35e9b994206b764d6b322)

#include <stddef.h>
#include <limits>
#include <type_traits>
#include "core/fxcrt/numerics/checked_math_impl.h"
Include dependency graph for checked_math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pdfium::internal::CheckedNumeric< T >
class  pdfium::CheckedNumeric< T >

Namespaces

namespace  pdfium
namespace  pdfium::internal

Functions

template<typename Dst, typename Src>
constexpr bool pdfium::internal::IsValidForType (const CheckedNumeric< Src > value)
template<typename Dst, typename Src>
constexpr StrictNumeric< Dst > pdfium::internal::ValueOrDieForType (const CheckedNumeric< Src > value)
template<typename Dst, typename Src, typename Default>
constexpr StrictNumeric< Dst > pdfium::internal::ValueOrDefaultForType (const CheckedNumeric< Src > value, const Default default_value)
template<typename T>
constexpr CheckedNumeric< typename UnderlyingType< T >::typepdfium::internal::MakeCheckedNum (const T value)
template<template< typename, typename, typename > class M, typename L, typename R>
constexpr CheckedNumeric< typename MathWrapper< M, L, R >::typepdfium::internal::CheckMathOp (const L lhs, const R rhs)
template<template< typename, typename, typename > class M, typename L, typename R, typename... Args>
constexpr auto pdfium::internal::CheckMathOp (const L lhs, const R rhs, const Args... args)
template<typename L, typename R>
L * pdfium::internal::operator+ (L *lhs, const StrictNumeric< R > rhs)
template<typename L, typename R>
L * pdfium::internal::operator- (L *lhs, const StrictNumeric< R > rhs)
template<typename Dst, typename Src>
constexpr bool pdfium::IsValidForType (const CheckedNumeric< Src > value)
template<typename T>
constexpr CheckedNumeric< typename UnderlyingType< T >::typepdfium::MakeCheckedNum (const T value)
template<typename Dst, typename Src, typename Default>
constexpr StrictNumeric< Dst > pdfium::ValueOrDefaultForType (const CheckedNumeric< Src > value, const Default default_value)
template<typename Dst, typename Src>
constexpr StrictNumeric< Dst > pdfium::ValueOrDieForType (const CheckedNumeric< Src > value)