C++ has included some functional programming features for quite some time. Troy explores transform in this video.
- [Instructor] The first methods…that newbie functional programmers learn…are map, filter and reduce.…A lot of languages, databases, and libraries…have these methods, but unfortunately…they don't exist in C++.…But don't fret, we have substitutes available.…Instead of map, filter and reduce,…we have transform, copy if, and accumulate.…These replacements aren't functional,…nor are they pure, but they have been part…of the C++ standard library since the 1990s.…We could create implementations of them from scratch,…but that usually isn't a good idea.…
The algorithms of the standard library…have had over 20 years of optimizations and improvements.…So let's go back to visual studio code.…Let us go into file, new.…And the first thing that we're going to do…is we're going to add some include files.…So we'll say include iostream,…include…algorithm,…include…vector,…and finally, include…numeric.…
Then we're going to save ourselves…a little bit of typing by putting in using namespace std,…and we'll create our main function.…We're not going to pass it anything.…
- Unit testing and functional programming
- Function and Lambda functions
- C++ templates
- Working with the Standard Template Library and Boost.Hana
- Functional reactive programming
Skill Level Intermediate
2. Functional Programming in Modern C++
3. Template Metaprogramming
4. Functional Reactive Programming
RxCpp library5m 21s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.