![]() |
|
|||
File indexing completed on 2023-03-17 11:19:54
0001 #ifndef RecoLuminosity_LumiProducer_Utils_H 0002 #define RecoLuminosity_LumiProducer_Utils_H 0003 #include <string> 0004 #include <sstream> 0005 #include <iostream> 0006 namespace lumi { 0007 /**convert string to numeric type 0008 **/ 0009 template <class T> 0010 bool from_string(T& t, const std::string& s, std::ios_base& (*f)(std::ios_base&)) { 0011 std::istringstream iss(s); 0012 return !(iss >> f >> t).fail(); 0013 } 0014 } // namespace lumi 0015 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |