文件名称:实现模板函数to_string用来格式化输出stl容器中的内容以及基础类型及自定义类型
文件大小:10KB
文件格式:H
更新时间:2016-08-06 09:09:19
stl container trait template string
Automatically analyze the parameter type and invoke the 'operator<<' interface to transform it to string. /** @fn to_string @brief transform the input value to string @param [in] T the value type is transformed to string @param [in] RefT the value reference to translate @param [in] split split mark between two element if have @return formated string */ template< class T> std::string to_string( const T& RefT, const char* split=" ")