v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
bounds.h File Reference
#include "include/v8config.h"
#include "src/base/macros.h"
Include dependency graph for bounds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::base
 

Functions

template<typename T , typename U >
requires ((std::is_integral_v<T> || std::is_enum_v<T>) && (std::is_integral_v<U> || std::is_enum_v<U>)) && (sizeof(U) <= sizeof(T))
constexpr bool v8::base::IsInRange (T value, U lower_limit, U higher_limit)
 
template<typename T , typename U >
requires ((std::is_integral_v<T> || std::is_enum_v<T>) && (std::is_integral_v<U> || std::is_enum_v<U>)) && (sizeof(U) <= sizeof(T))
constexpr bool v8::base::IsInHalfOpenRange (T value, U lower_limit, U higher_limit)
 
template<typename T >
requires std::is_unsigned<T>::value
constexpr bool v8::base::IsInBounds (T index, T length, T max)
 
template<typename T >
bool v8::base::ClampToBounds (T index, T *length, T max)