functionfun(this:{name:string},info:{name:string}){console.log(this)}//获取函数的类型typefuntype=typeof fun
//想要直接获取函数的this类型,采用内置组件typethisType= ThisParameterType<funtype>//想要移除一个函数类型type的this参数类型,并且返回当前剩余的函数类型typethisRemove= OmitThisParameter<funtype>export{}
定义于头文件 <fstream>
template< class CharT, class Traits std::char_traits<CharT> > class basic_fstream : public std::basic_iostream<CharT, Traits> 类模板 basic_fstream 实现基于文件的流上的高层输入/输出。它将 std::basic_i…