arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.13k stars 7k forks source link

[Library Manager] Functional Vlpp Library to support many more architectures besides AVR #9825

Closed khoih-prog closed 4 years ago

khoih-prog commented 4 years ago

https://github.com/khoih-prog/functional-vlpp

The original vczh-libraries/Vlpp provides common C++ construction, including string operation / generic container / linq, function templates to better support C++ functional programming across platforms.

The functional portion of the project was then forked and modified to be used for Arduino by Marcus Rugger functional-vlpp library.

This library is forked, modified to use and tested working OK in other architectures such as Teensy, SAM, SAMD, stm32, eps8266, esp32.

This library can be used as a replacement of C++11 STL std::function. For example, we can use typedef vl::Func<void(void)> THandlerFunction instead of typedef std::function<void(void)> THandlerFunction or typedef void (*THandlerFunction)(void).

Its importance is the ability to be used in complicated function calls, such as private Lambda functions in Classes.

cmaglie commented 4 years ago

Done.