Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
Deleter.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* Deleter.h (C) 2000-2006 */
9/* */
10/* Classe utilitaire pour la destruction des objets alloués par new. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_DELETER_H
13#define ARCANE_UTILS_DELETER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22ARCANE_BEGIN_NAMESPACE
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26/*!
27 * \internal
28 * \brief Classe utilitaire pour la destruction des objets alloués par new.
29 */
31{
32 public:
33 template<class U> inline void
34 operator()(const U* ptr) const
35 {
36 delete ptr;
37 }
38};
39
40/*---------------------------------------------------------------------------*/
41/*---------------------------------------------------------------------------*/
42
43ARCANE_END_NAMESPACE
44
45/*---------------------------------------------------------------------------*/
46/*---------------------------------------------------------------------------*/
47
48#endif
Fichier de configuration d'Arcane.