c++ - How to replace allocators of stl with actual source code -


I need to replace the allottee with my original source code. I extract the exported methods from the PE export table and weird I am facing long allocations where STL containers were used in the original source code. That is, if the source code was:

  typedef std :: list & lt; Std :: basic_string & lt; _TCHAR & gt; & Gt; TokenList; EXPORTS_API Constant Tokens & amp; GetLiteralList ();  

From the export table I'm receiving:

  std :: list & class; Std :: basic_string & lt; Unsigned less, std :: char_traits & lt; Unsigned mini & gt; ;; Class study :: allocation & lt; Unsigned minor & gt; Class std :: allocator & lt; Class std :: basic_string & lt; Unsigned short, struct std :: char_traits & lt; Unsigned minor & gt; Class class-allocator & lt; Unsigned minor & gt; & Gt; & Gt; & Gt; Const & amp; __thiscall CExpressionTokenizer :: getLiteralList (zero)  

How do I get the background in my original source code from the above length assignment?

Osman

I believe that you mean that you export You want to be able to determine the name of a more concise type than the table. Standard Allocation ( std :: allocator ) The templates of the most standard container class have the default template parameters for the allocation parameters, so that you can remove the entire allocation parameter from the template specifications to come up with simple expressions. Of the same type.

Example

  std :: list & class; Std :: basic_string & lt; Unsigned less, std :: char_traits & lt; Unsigned minor & gt; Class std :: allocation & lt; Unsigned minor & gt; Class std :: allocator & lt; Class std :: basic_string & lt; Unsigned short, struct std :: char_traits & lt; Unsigned minor & gt; Class class-allocator & lt; Unsigned minor & gt; & Gt; & Gt; & Gt; Const & amp; __thiscall CExpressionTokenizer :: getLiteralList (zero)  

becomes

  std :: list & lt; Class std :: basic_string & lt; Unsigned less, std :: char_traits & lt; Unsigned minor & gt; & Gt; & Gt; Const & amp; __thiscall CExpressionTokenizer :: Millelightlist (zero)  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -