CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // ---------------------------------------------------------------------- 00002 // 00003 // itos - convert (long) integer to string 00004 // 00005 // History: 00006 // 19-Dec-1997 WEB Initial draft 00007 // 05-Dec-1998 WEB Added "using" statement 00008 // 14-Feb-2000 WEB Improve C++ Standard compliance 00009 // 00010 // ---------------------------------------------------------------------- 00011 00012 #include <sstream> 00013 00014 #include "CLHEP/Cast/defs.h" 00015 #include "CLHEP/Cast/itos.h" 00016 00017 00018 std::string itos( long i ) { 00019 00020 std::ostringstream s; 00021 s << i; 00022 00023 return s.str(); 00024 00025 } // itos()