I am curious to know how auto_ptr is implemented in C ++. And I tried to figure out where the source is in ubuntu 10.04. I could find the .h file, but could not find its implementation. where can i find it?
auto_ptr is a template, and all the code is most likely in the header file.
auto_ptr
You can check the implementation of libstdc ++ 4.4 here .
The .h file is almost certainly its implementation. auto_ptr is a template. Since the implementation of the templates must be fully included, they are usually found in .h files.
This is a template class, so the details are displayed in the header file: take a look.
This is a template, so everything is in the title.
Here is a link to Scott Meyers auto_ptr
Source: https://habr.com/ru/post/1336182/More articles:Unit testing of several levels of exceptions - where to stay? - c #Problem connecting to PDO - phpHow to write code like graphics? Or should I use something like the Windows Workflow Foundation? - workflowDoes the -webkit transition work fine in HTML4 transition, but not in HTML5? - htmlResizing a terminal and scrolling with ncurses - cHow to create an array of type variables in Java? - javaC # lists: initialize with size, why then you canβt use [] access until .Add ()? - arraysSQL is a unique contrast if the column is set to x - sqledit button text in AsyncFileUpload control - asp.netPython 3.1.3 Win 7: csv writow Error "should be bytes or buffer, not str" - pythonAll Articles