eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingC is number one (znowu) › Re: C is number one (znowu)
  • Data: 2020-07-14 12:01:52
    Temat: Re: C is number one (znowu)
    Od: g...@g...com szukaj wiadomości tego autora
    [ pokaż wszystkie nagłówki ]

    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"

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: