arduino
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| arduino [2016/04/06 22:15] – dokuwikiadmin | arduino [2018/03/26 00:45] (aktuell) – [C++ new operator] karl | ||
|---|---|---|---|
| Zeile 233: | Zeile 233: | ||
| Most useful is the placement operator for static allocated memory. | Most useful is the placement operator for static allocated memory. | ||
| + | < | ||
| + | #include <new> // very important, otherwise you get helpless compile errors! | ||
| + | #include " | ||
| + | |||
| + | #define m(x) new (MemoryDispenser:: | ||
| + | |||
| + | |||
| + | // usage example: | ||
| + | JobController job = m(JobController(2)); | ||
| + | </ | ||
| + | |||
| + | {{tag> | ||
arduino.1459973744.txt.gz · Zuletzt geändert: von dokuwikiadmin
