STC5.0

STC5.0

After almost two years of development, the library version 5.0 was released STC (header-only), written in C (C11 standard) and distributed under the MIT license.
The library provides a large set of data structures and algorithms based on C macros and its own implementation of regular expressions and formatted output.

What's new:

  • New core build system with Meson. Also includes a simple Makefile.
  • New sum type (tagged union) in algorithm.h.
  • New single/multidimensional span type, similar to the NumPy implementation.
  • Coroutines now support structured concurrency, symmetric coroutines, and error handling.
  • The i_type template parameter allows you to define i_type, i_key, and i_val in one line, separated by commas.
  • The template parameters i_keyclass and i_valclass specify the types for which the _drop() and _clone() functions are defined.
  • Template parameters i_keypro and i_valpro to specify cstr, box and arc types (users can also define pro types).
  • hmap now uses hashing Robin Hood (very fast with clang compilation).
  • Added several new algorithms similar to C++ std::ranges, such as c_filter.
  • Lots of improvements and bug fixes.

Source: linux.org.ru

Add a comment