I am looking at an API written in C ++ and am confused by what the following type of parameter means:
void*& data
Does this mean that the user will pass a link to a void pointer? If true, what's the point? I mean, void * is already indirect, so why would you want to redirect it again?
, , , , . , ? - , char. , - , .
, . , , . ++ C apis. POSIX void, , ++ .
void * pass-by-pointer ++, , . , , , , .
void *
, void *& , . , , .
void *&
But be careful not to return a link to a local void *. Do nothing like this:
void*& f() { int* a=new int(10); void* x=(void*)a; return x; }
Source: https://habr.com/ru/post/1776009/More articles:C #: What is the best way to send a support request by email? - c #How to change tray icon using Java? - javaWPF Dependency Property Property - Template Parent Element - propertiesprocessing large raster images in OpenGL ES and Android - androidWPF Dependency Property Property and Link Type Default Values - wpfКогда вы используете jQuery.removeClass(), он возвращает ошибку при запуске элемента, который не имеет этого класса? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776011/restricting-access-to-a-site-by-ip&usg=ALkJrhg2jkO_Btzuhf177P8svIDW9IH-cgUsing a serial monitor in an Arduino IDE (why does it work?) - javajQuery: try catch {call function} not working? - javascriptC # file / folder monitor - c #All Articles