5#ifndef FXJS_GC_CONTAINER_TRACE_H_
6#define FXJS_GC_CONTAINER_TRACE_H_
13#include "v8/include/cppgc/member.h"
14#include "v8/include/cppgc/visitor.h"
20 for (
const auto& item : container)
24template <
typename T,
typename U,
typename V =
cppgc::
Visitor>
27 for (
const auto& item : container) {
28 visitor->Trace(item.first);
32template <
typename T,
typename U,
typename V =
cppgc::
Visitor>
35 for (
const auto& item : container)
36 visitor->Trace(item.second);
39template <
typename T,
typename U,
typename V =
cppgc::
Visitor>
43 for (
const auto& item : container) {
44 visitor->Trace(item.first);
45 visitor->Trace(item.second);
51 for (
const auto& item : container)
58 for (
const auto& item : container)
64using fxgc::ContainerTrace;
TEST(FXCRYPT, CryptToBase16)
void ContainerTrace(V *visitor, const std::map< cppgc::Member< U >, cppgc::Member< T > > &container)
void ContainerTrace(V *visitor, const std::list< cppgc::Member< T > > &container)
void ContainerTrace(V *visitor, const std::map< U, cppgc::Member< T > > &container)
void ContainerTrace(V *visitor, const std::map< cppgc::Member< T >, U > &container)