Remove useless C++11 reference: it confused the presentation.

This commit is contained in:
Patrick Pelissier committed 2017-04-01 01:21:35 +02:00
1 parent eceedbd9ed
commit 366f352d81
1 file changed
+1 -15
+1 -15
View File
@@ -233,20 +233,6 @@ This has the following advantages:
* you pass automatically the variable per reference for function calls,
* you can not copy the variable by an affectation (you have to use the API instead).
The same program written in C++11 can be a little bit simpler:
#include <iostream>
#include <list>
typedef std::list<unsigned int> list_uint_t;
int main(void) {
list_uint_t list ; /* list_uint_t has been define above */
list.push_back(42); /* Push 42 in the list */
list.push_back(17); /* Push 17 in the list */
for(auto item: list) {
std::cout << item << '\n'; /* Print the underlying data */
}
}
You can also condense the M\*LIB code by using the EACH & LET macros if you are not afraid of using syntactic macros:
#include <stdio.h>
@@ -262,7 +248,7 @@ You can also condense the M\*LIB code by using the EACH & LET macros if you are
} /* Clear of list will be done now */
}
Another examples are available in the example folder.
Other examples are available in the example folder.
You may not use the internal fields of the structure.
Internal fields of the structure are subject to change even for small revision