A C++ template library for embedded applications
MIT licensed
Join the ETL community
Designed and
maintained by
John Wellbelove
Like the ETL? Become a patron!


It is possible to use the ETL without any reliance on the STL.
This can be achieved by defining the project wide macro ETL_NO_STL

When this macro is defined then the ETL will used its own reverse engineered versions of traits and algorithms.
These traits and algorithms are available to the user of the ETL, regardless of whether the STL is used or not.

When the STL is used, then, for the most part, the ETL will merely act as a wrapper around the STL definitions.

If the C++ level of your compiler does not support a particular algorithm (e.g. C++03 compiler and
std::sorted_until), then the ETL will revert to its own version.

Using pair, move, iterator tags or reverse_iterator

When ETL_NO_STL is defined then the ETL will use its own versions, otherwise the STL versions will be used.
This will affect the return types of certain functions.


etl::equal_range will return either std::pair or etl::pair


The ETL's version of STL features is not exhaustive, and many features are missing. The ETL mostly defines just the
STL features that it relies on.

That said, if there is an STL feature missing from the No STL option, then feel free to add it yourself and generate a
pull request.