2020-07-16 11:47:14 +01:00
.circleci Merge branch 'master' into development 2020-05-12 23:52:47 +01:00
examples Minor tidying 2020-05-12 15:25:35 +01:00
images Removed surplus 'typename T' in pool create() for C++03 2020-05-28 11:12:15 +01:00
include/etl Merge branch 'development' 2020-07-16 11:47:14 +01:00
support Updated version numbers 2020-07-16 11:26:40 +01:00
temp Added indirect_vector 2019-11-13 14:12:33 +00:00
test w, u16 & u32 string utilities added 2020-07-16 01:03:41 +01:00
uml UML framework diagrams 2017-08-03 09:53:33 +01:00
.gitattributes namespace elt to etl 2014-10-26 16:39:14 +00:00
.gitignore Full string utilities for char 2020-07-15 12:22:46 +01:00
.gitlab-ci.yml Trigger CI pipelines on gitlab 2018-11-04 10:10:50 +00:00
.gitmodules Merge remote-tracking branch 'origin/feature/CMake' into development 2018-05-31 22:21:09 +01:00
appveyor.yml Backup copy of appveyor.yml 2019-12-06 10:17:27 +00:00
CMakeLists.txt Restored root directory CMakeLists.txt 2020-05-12 10:35:13 +01:00
conanfile.py Updated how conan get the library version 2020-04-30 12:48:57 +01:00
Doxyfile Updated doxygen file (#131) 2019-06-14 22:41:45 +01:00
etl16.png Updated icons 2016-03-06 12:49:01 +00:00
etl32.png Updated icons 2016-03-06 12:49:01 +00:00
etl48.png Updated icons 2016-03-06 12:49:01 +00:00
etl64.png Added determine_development_os.h to platform.h to attempt to automatically deduce the OS that the developer is using. 2020-04-20 09:05:22 +01:00
etl-patreon.png C++03 compatibility changes for type_traits.h 2020-05-27 11:57:41 +01:00
etl-social.png C++03 compatibility changes for type_traits.h 2020-05-27 11:57:41 +01:00
etl.ico Updated icons 2016-03-06 12:49:01 +00:00
etl.png Updated icons 2016-03-06 12:48:35 +00:00
etl.pspimage Created new project icon 2016-02-10 19:06:53 +00:00
etl.xar Updated icons 2016-03-06 12:49:01 +00:00
favicon-32.png Added determine_development_os.h to platform.h to attempt to automatically deduce the OS that the developer is using. 2020-04-20 09:05:22 +01:00
favicon-64.png Added determine_development_os.h to platform.h to attempt to automatically deduce the OS that the developer is using. 2020-04-20 09:05:22 +01:00
favicon.ico Updated icons 2016-03-06 12:48:35 +00:00
library.json Updated version numbers 2020-07-16 11:26:40 +01:00
library.properties Updated version numbers 2020-07-16 11:26:40 +01:00
LICENSE Merge remote-tracking branch 'origin/master' into development 2018-07-12 21:32:54 +01:00
meson.build Meson build improvement: Don't build tests by default if used as a subproject (#218) 2020-05-09 13:04:07 +01:00
README.md Update README.md 2020-05-24 09:37:09 +01:00
todo.txt Merge remote-tracking branch 'origin/feature/etl__make_string' into development 2019-12-04 20:55:18 +00:00

Embedded Template Library (ETL)

Build status ETLCPP Codacy Badge GitHub release (latest by date) License

Motivation

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

What is needed is a template library where the user can declare the size, or maximum size of any object upfront. Most embedded compilers do not currently support the standard beyond C++ 03, therefore excluding the programmer from using the enhanced features of the later library.

This is what the ETL attempts to achieve.

Summary

The ETL is not designed to completely replace the STL, but complement it. Its design objective covers three areas.

  • Create a set of containers where the size or maximum size is determined at compile time. These containers are direct equivalents of those supplied in the STL.
  • Be compatible with C++ 03 but implement as many of the C++ 11 additions as possible.
  • Add other useful components that are not present in the standard library.

The embedded template library has been designed for lower resource embedded applications. It contains 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 of the containers 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.

Main features:

  • Cross platform. This library is not specific to any processor type.
  • No dynamic memory allocation
  • No RTTI required
  • Very little use of virtual functions. They are used only when they are absolutely necessary for the required functionality
  • A set of fixed capacity containers. (array, bitset, deque, forward_list, list, queue, stack, vector, map, set, etc.)
  • As the storage for all of the container types is allocated as a contiguous block, they are extremely cache friendly
  • Templated compile time constants
  • Templated design pattern base classes (Visitor, Observer)
  • Reverse engineered C++ 0x11 features (type traits, algorithms, containers etc.)
  • Type-safe enumerations
  • Type-safe typedefs
  • 8, 16, 32 & 64 bit CRC calculations
  • Checksums & hash functions
  • Variants (a type that can store many types in a type-safe interface)
  • Choice of asserts, exceptions, error handler or no checks on errors
  • Many utilities for template support.
  • Easy to read and documented source.
  • Free email support

Any help porting the library to work under different platforms and compilers would be gratefully received. I am especially interested in people who are using Keil, IAR, Green Hills, TI Code Composer etc, bare metal or RTOS, and DSPs.

See (https://www.etlcpp.com) for up-to-date information.