Apply a callback to an array: Difference between revisions

→‎{{header|C++}}: subsectioned, added library templates
m (→‎{{header|C sharp|C #}}: Removed platform link)
(→‎{{header|C++}}: subsectioned, added library templates)
Line 148:
'''Compiler:''' [[GNU Compiler Collection]] 4.1.1
===C-Style Array===
Using [[c-style array]]
 
#include <iostream> //cout for printing
Line 165:
//prints 1 4 9 16 25
 
Using [[===std]]::[[std::vector|vector]]===
{{library|STL}}
 
#include <iostream> //cout for printing
Line 213 ⟶ 214:
//prints 1x 2x 3x 4x 5x
 
Using ===Boost.Lambda===
{{library|Boost}}
 
using namespace std;