Skip to content
EntityQ1665677· pop 18· linked from 83 articles

智能指针

Sign in to save

abstract data type that simulates a pointer while providing added features, such as automatic memory management or bounds checking, intended to reduce bugs caused by the misuse of pointers, while retaining efficiency

Wikidata facts

Subclass of
pointer
Sources (1)

via Wikidata · CC0

Article · 中文

智能指针(英語:Smart pointer)是一種抽象的資料類型。在程式設計中,它通常是經由类模板來實作,藉由模板來達成泛型,藉由類別的解構函數來達成自動釋放指標所指向的記憶體或物件。

Abstract from DBpedia / Wikipedia · CC BY-SA