/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/PhySim/PhySim-00-00-10/src/BaBar.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: BaBar.cc,v 1.1 2007/10/12 07:30:20 caogf Exp $
00004 //
00005 // Description:
00006 //      See corresponding .hh file.
00007 //
00008 // Environment:
00009 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00010 //
00011 // Author List:
00012 //      Rainer Bartoldus
00013 //
00014 // Copyright Information:
00015 //      Copyright (C) 2004      Stanford Linear Accelerator Center
00016 //
00017 //--------------------------------------------------------------------------
00018 #ifndef    BABAR_COMP_INST
00019 #include "BaBar.hh"
00020 #endif  // BABAR_COMP_INST
00021 
00022 #if defined(__SUNPRO_CC)
00023 
00024 #include <stddef.h>
00025 
00026 namespace std
00027 {
00028   template <class InputIterator, class T>
00029   ptrdiff_t
00030   count (InputIterator first, InputIterator last, const T& value)
00031   {
00032     ptrdiff_t n = 0;
00033     while (first != last)
00034       if (*first++ == value) ++n;
00035     return n;
00036   }
00037 
00038   template <class InputIterator, class Predicate>
00039   ptrdiff_t
00040   count_if (InputIterator first, InputIterator last, Predicate pred)
00041   {
00042     ptrdiff_t n = 0;
00043     while (first != last)
00044       if (pred(*first++)) ++n;
00045     return n;
00046   }
00047 
00048   template <class InputIterator>
00049   ptrdiff_t
00050   distance (InputIterator first, InputIterator last)
00051   {
00052     ptrdiff_t n = 0;
00053     while (first != last)
00054       { ++first; ++n; }
00055     return n;
00056   }
00057 }
00058 #endif // __SUNPRO_CC

Generated on Tue Nov 29 23:14:29 2016 for BOSS_7.0.2 by  doxygen 1.4.7