v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::detail Namespace Reference

Classes

struct  nth_type
 
struct  nth_type< 0, T, Ts... >
 
struct  nth_type< N, T, Ts... >
 

Functions

template<typename... Ts>
std::string PrintToString (Ts &&... ts)
 
template<typename T >
auto GetUnderlyingEnumTypeForPrinting (T val)
 
template<typename Function , std::size_t... Indexes>
constexpr auto make_array_helper (Function f, std::index_sequence< Indexes... >) -> std::array< decltype(f(0)), sizeof...(Indexes)>
 
template<size_t N, typename T , size_t... Ints>
constexpr auto tuple_slice_impl (const T &tpl, std::index_sequence< Ints... >)
 
template<typename Tuple , typename Function , size_t... Index>
constexpr auto tuple_for_each_impl (const Tuple &tpl, Function &&function, std::index_sequence< Index... >)
 
template<typename Tuple , typename Function , size_t... Index>
constexpr auto tuple_for_each_with_index_impl (const Tuple &tpl, Function &&function, std::index_sequence< Index... >)
 
template<typename Tuple , typename Function , size_t... Index>
constexpr auto tuple_map_impl (Tuple &&tpl, const Function &function, std::index_sequence< Index... >)
 
template<typename TupleV , typename TupleU , typename Function , size_t... Index>
constexpr auto tuple_map2_impl (TupleV &&tplv, TupleU &&tplu, const Function &function, std::index_sequence< Index... >)
 
template<size_t I, typename T , typename Tuple , typename Function >
constexpr auto tuple_fold_impl (T &&initial, Tuple &&tpl, Function &&function)
 

Variables

template<size_t N, typename Tuple >
constexpr bool NIsNotGreaterThanTupleSize
 

Function Documentation

◆ GetUnderlyingEnumTypeForPrinting()

template<typename T >
auto v8::base::detail::GetUnderlyingEnumTypeForPrinting ( T val)

Definition at line 195 of file logging.h.

Here is the caller graph for this function:

◆ make_array_helper()

template<typename Function , std::size_t... Indexes>
auto v8::base::detail::make_array_helper ( Function f,
std::index_sequence< Indexes... >  ) -> std::array<decltype(f(0)), sizeof...(Indexes)>
inlineconstexpr

Definition at line 23 of file template-utils.h.

Here is the caller graph for this function:

◆ PrintToString()

template<typename... Ts>
std::string v8::base::detail::PrintToString ( Ts &&... ts)

Definition at line 188 of file logging.h.

Here is the caller graph for this function:

◆ tuple_fold_impl()

template<size_t I, typename T , typename Tuple , typename Function >
auto v8::base::detail::tuple_fold_impl ( T && initial,
Tuple && tpl,
Function && function )
constexpr

Definition at line 128 of file template-utils.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tuple_for_each_impl()

template<typename Tuple , typename Function , size_t... Index>
auto v8::base::detail::tuple_for_each_impl ( const Tuple & tpl,
Function && function,
std::index_sequence< Index... >  )
constexpr

Definition at line 99 of file template-utils.h.

Here is the caller graph for this function:

◆ tuple_for_each_with_index_impl()

template<typename Tuple , typename Function , size_t... Index>
auto v8::base::detail::tuple_for_each_with_index_impl ( const Tuple & tpl,
Function && function,
std::index_sequence< Index... >  )
constexpr

Definition at line 105 of file template-utils.h.

Here is the caller graph for this function:

◆ tuple_map2_impl()

template<typename TupleV , typename TupleU , typename Function , size_t... Index>
auto v8::base::detail::tuple_map2_impl ( TupleV && tplv,
TupleU && tplu,
const Function & function,
std::index_sequence< Index... >  )
constexpr

Definition at line 120 of file template-utils.h.

Here is the caller graph for this function:

◆ tuple_map_impl()

template<typename Tuple , typename Function , size_t... Index>
auto v8::base::detail::tuple_map_impl ( Tuple && tpl,
const Function & function,
std::index_sequence< Index... >  )
constexpr

Definition at line 113 of file template-utils.h.

Here is the caller graph for this function:

◆ tuple_slice_impl()

template<size_t N, typename T , size_t... Ints>
auto v8::base::detail::tuple_slice_impl ( const T & tpl,
std::index_sequence< Ints... >  )
constexpr

Definition at line 94 of file template-utils.h.

Here is the caller graph for this function:

Variable Documentation

◆ NIsNotGreaterThanTupleSize

template<size_t N, typename Tuple >
bool v8::base::detail::NIsNotGreaterThanTupleSize
constexpr
Initial value:
=
N <= std::tuple_size_v<std::decay_t<Tuple>>

Definition at line 90 of file template-utils.h.