dbo:abstract
|
- auto_ptr is a class template that was available in previous versions of the C++ standard library (declared in the <memory></memory> header file), which provides some basic RAII features for C++ raw pointers. It has been replaced by the unique_ptr class. The auto_ptr template class describes an object that stores a pointer to a single allocated object that ensures that the object to which it points gets destroyed automatically when control leaves a scope. The C++11 standard made auto_ptr deprecated, replacing it with the <a href="/wiki/Smart_pointer#unique_ptr" title="Smart pointer">unique_ptr</a> class template. auto_ptr was fully removed in C++17.For shared ownership, the <a href="/wiki/Shared_ptr" class="mw-redirect" title="Shared ptr">shared_ptr</a> template class can be used. shared_ptr was defined in C++11 and is also available in the Boost library for use with previous C++ versions. (en)
- auto_ptr – szablon klasy sprytnego wskaźnika dostępny w (zadeklarowany w nagłówku ) udostępniający podstawową funkcjonalność RAII dla zwykłych surowych wskaźników. Wzorzec klasy auto_ptr opisuje obiekt przechowujący wskaźnik do zaalokowanego obiektu typu Typ*, dbając o to żeby obiekt na który ten wskaźnik wskazuje został automatycznie zniszczony wraz ze zniszczeniem wskaźnika − czyli zazwyczaj po opuszczeniu zasięgu. W większości sytuacji preferowany zamiast auto_ptr jest wzorzec proponowany w Technical Report 1 i dostępny w bibliotece Boost, a także zgodnie ze standardem C++0x - w bibliotece standardowej C++. Wersja robocza standardu C++0x, z sierpnia 2010, odradza korzystanie z auto_ptr, zalecając zastępowanie go nowym w bibliotece standardowej szablonem . auto ptr został usunięty w standardzie . (pl)
|
dbo:wikiPageExternalLink
| |
dbo:wikiPageID
| |
dbo:wikiPageLength
|
- 6310 (xsd:nonNegativeInteger)
|
dbo:wikiPageRevisionID
| |
dbo:wikiPageWikiLink
| |
dbp:wikiPageUsesTemplate
| |
dcterms:subject
| |
gold:hypernym
| |
rdf:type
| |
rdfs:comment
|
- auto_ptr is a class template that was available in previous versions of the C++ standard library (declared in the <memory></memory> header file), which provides some basic RAII features for C++ raw pointers. It has been replaced by the unique_ptr class. The auto_ptr template class describes an object that stores a pointer to a single allocated object that ensures that the object to which it points gets destroyed automatically when control leaves a scope. (en)
- auto_ptr – szablon klasy sprytnego wskaźnika dostępny w (zadeklarowany w nagłówku ) udostępniający podstawową funkcjonalność RAII dla zwykłych surowych wskaźników. Wzorzec klasy auto_ptr opisuje obiekt przechowujący wskaźnik do zaalokowanego obiektu typu Typ*, dbając o to żeby obiekt na który ten wskaźnik wskazuje został automatycznie zniszczony wraz ze zniszczeniem wskaźnika − czyli zazwyczaj po opuszczeniu zasięgu. (pl)
|
rdfs:label
|
- Auto ptr (en)
- Auto ptr (pl)
|
owl:sameAs
| |
prov:wasDerivedFrom
| |
foaf:isPrimaryTopicOf
| |
is dbo:wikiPageRedirects
of | |
is dbo:wikiPageWikiLink
of | |
is foaf:primaryTopic
of | |