#include <iostream>#include <algorithm>#include <numeric>#include <vector>#include <sigc++/sigc++.h>Go to the source code of this file.
Functions | |
| void | print (int i) |
| bool | even (int i) |
| int | main (int argc, char *argv[]) |
|
|
Definition at line 15 of file test-functor.cc. Referenced by main(), and MSTCalcAna::MSTCalcAna(). 00016 {
00017 return i%2 == 0;
00018 }
|
|
||||||||||||
|
Definition at line 20 of file test-functor.cc. References even(). 00021 {
00022 vector<int> v1(10);
00023 iota(v1.begin(),v1.end(),1);
00024 vector<int> v2;
00025 remove_copy_if(v1.begin(),v1.end(),back_inserter(v2),slot(even));
00026 cout << "v1:\n";
00027 for_each(v1.begin(),v1.end(),print);
00028 cout << "v2:\n";
00029 for_each(v2.begin(),v2.end(),print);
00030 return 0;
00031 } // end of main()
|
|
|
Definition at line 10 of file test-functor.cc. Referenced by MeuReco::CalcFCPC(), LIAnalysis::CheckData(), Anp::RunAlgSnarl::Config(), NuCounter::CountTrkStdhepId(), MeuCuts::FilterBadEvtPerSlc(), LIAnalysis::GainCurves(), MeuAnalysis::MakeSummaryTreeWithAtNu(), MeuAnalysis::MakeSummaryTreeWithNtpStOneSnarl(), Anp::Hist1d< T >::Print(), LIPlexMaps::ReadDbGains(), LIPlexMaps::ReadDbPulserDrift(), MeuAnalysis::Recalibrate(), and MeuAnalysis::SpillPlots(). 00011 {
00012 cout << i << endl;
00013 }
|
1.3.9.1