Embedded Template Library

submited by
Style Pass
2021-06-22 13:00:15

C++ is a great language to use for embedded applications and templates are a powerful aspect of it. The standard library can offer a great deal of well tested functionality, but there are some parts that do not fit well with deterministic behaviour and limited resource requirements. These limitations usually preclude the use of dynamically allocated memory which means that the STL containers are unusable.

What is needed is a template library where the user can declare the size, or maximum size of any object upfront. As most embedded compilers do not currently support the standard beyond C++ 03, it would also be nice to have access to some of the features introduced in the later library.

• The embedded template library has been designed for lower resource embedded applications. It defines a    set of containers, algorithms, and utilities, some of which emulate parts of the STL. There is no dynamic memory    allocation.

• The library makes no use of the heap. All the containers (apart from intrusive types) have a fixed capacity    allowing all memory allocation to be determined at compile-time. The library is intended for any compiler that    supports C++03 or greater.

Leave a Comment