BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
BaBar.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: BaBar.cc,v 1.1 2007/10/12 07:30:20 caogf Exp $
4//
5// Description:
6// See corresponding .hh file.
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// Rainer Bartoldus
13//
14// Copyright Information:
15// Copyright (C) 2004 Stanford Linear Accelerator Center
16//
17//--------------------------------------------------------------------------
18#ifndef BABAR_COMP_INST
19#include "BaBar.hh"
20#endif // BABAR_COMP_INST
21
22#if defined(__SUNPRO_CC)
23
24#include <stddef.h>
25
26namespace std
27{
28 template <class InputIterator, class T>
29 ptrdiff_t
30 count (InputIterator first, InputIterator last, const T& value)
31 {
32 ptrdiff_t n = 0;
33 while (first != last)
34 if (*first++ == value) ++n;
35 return n;
36 }
37
38 template <class InputIterator, class Predicate>
39 ptrdiff_t
40 count_if (InputIterator first, InputIterator last, Predicate pred)
41 {
42 ptrdiff_t n = 0;
43 while (first != last)
44 if (pred(*first++)) ++n;
45 return n;
46 }
47
48 template <class InputIterator>
49 ptrdiff_t
50 distance (InputIterator first, InputIterator last)
51 {
52 ptrdiff_t n = 0;
53 while (first != last)
54 { ++first; ++n; }
55 return n;
56 }
57}
58#endif // __SUNPRO_CC
const Int_t n
Index first(Pair i)
Definition: EvtCyclic3.cc:195
uint32_t count(const node_t &list)
Definition: node.cxx:42