8#include <gtest/gtest.h>
10#include "arcane/utils/AutoRef.h"
23 explicit MyClass(
Int32 x)
26 std::cout <<
"CREATE_REF value=" << m_value <<
"\n";
30 std::cout <<
"DESTROY_REF value=" << m_value <<
"\n";
36 std::cout <<
"ADD_REF n=" << m_nb_ref <<
" value=" << m_value <<
"\n";
42 std::cout <<
"REMOVE_REF n=" << m_nb_ref <<
" value=" << m_value <<
"\n";
73TEST(TestAutoRef, Misc)
81 std::cout <<
"END_OF_TEST\n";
Encapsulation d'un pointeur avec compteur de référence.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int32_t Int32
Type entier signé sur 32 bits.