CMS 3D CMS Logo

Classes | Functions

edm::root Namespace Reference

Classes

class  FWLiteDelayedReader
struct  TFWLiteSelectorMembers

Functions

std::string stdNamespaceAdder (const std::string &iClassName)

Function Documentation

std::string edm::root::stdNamespaceAdder ( const std::string &  iClassName)

Definition at line 26 of file stdNamespaceAdder.cc.

References alignCSCRings::e, and cmsPerfStripChart::format.

    {
      //adds the std:: prefix to vector, string, map, list or deque if it is not
      // already there
      static const boost::regex e("(^|[^[:alnum:]_:])((?:vector)|(?:string)|(?:map)|(?:list)|(?:deque))");
      const std::string format("\\1std::\\2");
      
      return regex_replace(iClassName, e, format, boost::match_default | boost::format_sed);
    }