Arcane  v3.16.4.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
Algorithm.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* Algorithm.h (C) 2000-2025 */
9/* */
10/* Algorithmes de la STL. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ALGORITHM_H
13#define ARCANE_CORE_ALGORITHM_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19#include <algorithm>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30template <class Container, class Element> inline
31typename Container::const_iterator
32container_find(const Container& c, const Element& elem)
33{
34 typedef typename Container::const_iterator const_iterator;
35 const_iterator i = ARCANE_STD::find(c.begin(), c.end(), elem);
36 return i;
37}
38
39/*---------------------------------------------------------------------------*/
40/*---------------------------------------------------------------------------*/
41
42} // namespace Arcane
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
47#endif
Fichier de configuration d'Arcane.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-