Article View: pl.comp.programming
Article #216996Re: C is number one (znowu)
From: godek.maciek
Date: Tue, 14 Jul 2020 10:01
Date: Tue, 14 Jul 2020 10:01
20 lines
3369 bytes
3369 bytes
W dniu poniedziałek, 13 lipca 2020 20:49:14 UTC+2 użytkownik Maciej Sobczak napisał: > [...] > > A coś o smart pointerach tam jest? Wszystko tam jest. Wystarczy przeczytać. Na podlinkowanej przez Ciebie stronie wiki. Wskaźniki vs. referencje: "A pointer is a simple, more concrete implementation of the more abstract reference data type. Several languages, especially low-level languages, support some type of pointer, although some have more restrictions on their use than others. While "pointer" has been used to refer to references in general, it more properly applies to data structures whose interface explicitly allows the pointer to be manipulated (arithmetically via pointer arithmetic) as a memory address, as opposed to a magic cookie or capability which does not allow such" Wskaźniki vs. smart pointery: "Since C++11, the C++ standard library also provides smart pointers (unique_ptr, shared_ptr and weak_ptr) which can be used in some situations as a safer alternative to primitive C pointers" gdzie "smart pointers" przenosi nas do odrębnej strony na wiki, gdzie można przeczytać: "In computer science, a smart pointer is an abstract data type that simulates a pointer while providing added features, such as automatic memory management or bounds checking"
Technical Details
Message-ID:
<18c88862-adc4-47e0-90d1-654bd1c90cf6o@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin1!goblin.stu.neva.ru!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mailReferences:
<a81005fe-ad6c-4221-9d4b-5e5272c400a8@googlegroups.com> <r9o6rb$lp5$1@news.icm.edu.pl> <1dcffd9f-ad27-450b-99f4-dc2703e19a6f@googlegroups.com> <rassv4$9ti$1@news.icm.edu.pl> <2ceb517b-0aff-43e8-89d0-f6020b958537@googlegroups.com> <rdhlvh$udp$1@news.icm.edu.pl> <a0add84b-67a0-43b4-8726-76e5d9e2b7b7o@googlegroups.com> <rdl4s1$abp$1@news.icm.edu.pl> <ea0a1c54-2720-41fc-b2a1-a5e75151187eo@googlegroups.com> <rduo26$ofp$1@news.icm.edu.pl> <c05273ac-9d1c-4f0b-b66d-8f078d70a6ddo@googlegroups.com> <re1unm$8vq$1@dont-email.me> <ba5d1b36-f368-4f7b-8a29-8d2de299f3b3o@googlegroups.com> <rec454$cbq$1@news.icm.edu.pl> <6faa1120-6d95-4171-b43f-c8a86c135be6o@googlegroups.com> <c06d7176-4b51-406d-9b25-137730f5af47o@googlegroups.com> <7be60910-7941-4e71-9438-3ba0fc2ccff7o@googlegroups.com> <dfbe51a1-5416-48c1-850c-8695a7ec37e4o@googlegroups.com> <36da3f68-dee5-412f-a1e1-f5c76c338884o@googlegroups.com> <ecf47492-7c3e-4c78-84f3-9685ed338681o@googlegroups.com>Show Full Headers
Complete Article Headers
X-Received: by 2002:a37:44c4:: with SMTP id r187mr3727914qka.93.1594720913150; Tue, 14 Jul 2020 03:01:53 -0700 (PDT) X-Received: by 2002:a37:4d97:: with SMTP id a145mr3522804qkb.380.1594720912991; Tue, 14 Jul 2020 03:01:52 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin1!goblin.stu.neva.ru!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: pl.comp.programming Date: Tue, 14 Jul 2020 03:01:52 -0700 (PDT) In-Reply-To: <ecf47492-7c3e-4c78-84f3-9685ed338681o@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=213.192.68.153; posting-account=f7iIKQoAAAAkDKpUafc-4IXhmRAzdB5r NNTP-Posting-Host: 213.192.68.153 References: <a81005fe-ad6c-4221-9d4b-5e5272c400a8@googlegroups.com> <r9o6rb$lp5$1@news.icm.edu.pl> <1dcffd9f-ad27-450b-99f4-dc2703e19a6f@googlegroups.com> <rassv4$9ti$1@news.icm.edu.pl> <2ceb517b-0aff-43e8-89d0-f6020b958537@googlegroups.com> <rdhlvh$udp$1@news.icm.edu.pl> <a0add84b-67a0-43b4-8726-76e5d9e2b7b7o@googlegroups.com> <rdl4s1$abp$1@news.icm.edu.pl> <ea0a1c54-2720-41fc-b2a1-a5e75151187eo@googlegroups.com> <rduo26$ofp$1@news.icm.edu.pl> <c05273ac-9d1c-4f0b-b66d-8f078d70a6ddo@googlegroups.com> <re1unm$8vq$1@dont-email.me> <ba5d1b36-f368-4f7b-8a29-8d2de299f3b3o@googlegroups.com> <rec454$cbq$1@news.icm.edu.pl> <6faa1120-6d95-4171-b43f-c8a86c135be6o@googlegroups.com> <c06d7176-4b51-406d-9b25-137730f5af47o@googlegroups.com> <7be60910-7941-4e71-9438-3ba0fc2ccff7o@googlegroups.com> <dfbe51a1-5416-48c1-850c-8695a7ec37e4o@googlegroups.com> <36da3f68-dee5-412f-a1e1-f5c76c338884o@googlegroups.com> <ecf47492-7c3e-4c78-84f3-9685ed338681o@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <18c88862-adc4-47e0-90d1-654bd1c90cf6o@googlegroups.com> Subject: Re: C is number one (znowu) From: godek.maciek@gmail.com Injection-Date: Tue, 14 Jul 2020 10:01:53 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit