inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/count_out
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_count_out
00005 #define inlib_count_out
00006 
00007 #include <ostream>
00008 #include "typedefs"
00009 
00010 namespace inlib {
00011 
00012 template <class T>
00013 inline void count_out(std::ostream& a_out,T a_count,T a_step) {
00014   if(a_step*T(a_count/a_step)==a_count) a_out << a_count << std::endl;
00015 }
00016 
00017 }
00018 
00019 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines