Placement syntax (original) (raw)

About DBpedia

In the C++ programming language, placement syntax allows programmers to explicitly specify the memory management of individual objects — i.e. their "placement" in memory. Normally, when an object is created dynamically, an allocation function is invoked in such a way that it will both allocate memory for the object, and initialize the object within the newly allocated memory. The placement syntax allows the programmer to supply additional arguments to the allocation function. A common use is to supply a pointer to a suitable region of storage where the object can be initialized, thus separating memory allocation from object construction.

Property Value
dbo:abstract In the C++ programming language, placement syntax allows programmers to explicitly specify the memory management of individual objects — i.e. their "placement" in memory. Normally, when an object is created dynamically, an allocation function is invoked in such a way that it will both allocate memory for the object, and initialize the object within the newly allocated memory. The placement syntax allows the programmer to supply additional arguments to the allocation function. A common use is to supply a pointer to a suitable region of storage where the object can be initialized, thus separating memory allocation from object construction. The "placement" versions of the new and delete operators and functions are known as placement new and placement delete. A new expression, placement or otherwise, calls a new function, also known as an allocator function, whose name is operator new. Similarly, a delete expression calls a delete function, also known as a deallocator function, whose name is operator delete. Any new expression that uses the placement syntax is a placement new expression, and any operator new or operator delete function that takes more than the mandatory first parameter (std::size_t) is a placement new or placement delete function. A placement new function takes two input parameters: std::size_t and void *. (en)
dbo:wikiPageExternalLink http://wyw.dcweb.cn/leakage.htm http://ddj.com/showArticle.jhtml%3FdocumentID=cuj9804meyers&pgno=2%7Cwork= http://glenmccl.com/nd_cmp.htm%7Ctitle=Placement http://informit.com/articles/article.aspx%3Fp=30642&seqNum=3%7Cpublisher= http://parashift.com./c++-faq-lite/dtors.html%23faq-11.10%7Cwork=C++ http://msdn.microsoft.com/en-us/library/kewsb8ba.aspx%7Cwork= http://msdn.microsoft.com/en-us/library/t48aek43.aspx%7Cwork= http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/topic/com.ibm.vacpp6m.doc/language/ref/clrc05cplr199.htm%7Ctitle=C++ https://archive.org/details/cprogramminglang00stro https://archive.org/details/cprogramminglang00stro_0 https://web.archive.org/web/20060418093041/http:/www.glenmccl.com/nd_cmp.htm%7Carchive-date=2006-04-18 http://www.desy.de/user/projects/C++/g++faq/placement_new_syntax.html%7Ctitle=3.4.
dbo:wikiPageID 20309902 (xsd:integer)
dbo:wikiPageLength 24428 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID 1120649965 (xsd:integer)
dbo:wikiPageWikiLink dbr:Cambridge_University_Press dbr:Memory_leak dbr:Bjarne_Stroustrup dbr:Allocator_(C++) dbr:Memory_management dbr:Constructor_(object-oriented_programming) dbr:MSDN dbr:Pointer_(computer_programming) dbr:Syntax_(programming_languages) dbr:C++ dbr:Addison-Wesley dbr:Dr._Dobb's_Journal dbr:The_C++_Programming_Language dbc:C++ dbr:IBM dbr:Microsoft dbr:Programming_language dbr:Constructor_(computer_science) dbr:Destructor_(computer_science) dbr:Memory_(computing)
dbp:wikiPageUsesTemplate dbt:Citation_needed dbt:Cite_book dbt:Cite_news dbt:Cite_web dbt:Refbegin dbt:Refend dbt:Reflist
dcterms:subject dbc:C++
rdfs:comment In the C++ programming language, placement syntax allows programmers to explicitly specify the memory management of individual objects — i.e. their "placement" in memory. Normally, when an object is created dynamically, an allocation function is invoked in such a way that it will both allocate memory for the object, and initialize the object within the newly allocated memory. The placement syntax allows the programmer to supply additional arguments to the allocation function. A common use is to supply a pointer to a suitable region of storage where the object can be initialized, thus separating memory allocation from object construction. (en)
rdfs:label Placement syntax (en)
owl:sameAs freebase:Placement syntax wikidata:Placement syntax https://global.dbpedia.org/id/4tvtB
prov:wasDerivedFrom wikipedia-en:Placement_syntax?oldid=1120649965&ns=0
foaf:isPrimaryTopicOf wikipedia-en:Placement_syntax
is dbo:wikiPageRedirects of dbr:Placement_Syntax dbr:Placement_delete_(C++) dbr:Placement_delete dbr:Placement_new dbr:Placement_new_(C++)
is dbo:wikiPageWikiLink of dbr:Placement_Syntax dbr:Placement_delete_(C++) dbr:Placement_delete dbr:Placement_new dbr:Placement_new_(C++)
is foaf:primaryTopic of wikipedia-en:Placement_syntax