STC 5.0

STC 5.0

After nearly two years of development, the release of version 5.0 of the library has occurred 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, along with its implementation of regular expressions and formatted output.

What's new:

  • A new build system based on Meson. A simple Makefile is also included.
  • A new sum type (tagged union) in algorithm.h.
  • A new one-dimensional/multi-dimensional span type, similar to the implementation in NumPy.
  • Coroutines now support structured parallelism, symmetric coroutines, and error handling.
  • The template parameter i_type allows you to define i_type, i_key, and i_val in a single line, separated by commas.
  • Template parameters i_keyclass and i_valclass specify the types for which _drop() and _clone() functions are defined.
  • Template parameters i_keypro and i_valpro allow defining types cstr, box, and arc (users can also define their own pro-types).
  • hmap now uses hashing Robin Hood (very fast with clang compilation).
  • Several new algorithms similar to C++ std::ranges have been added, such as c_filter.
  • A number of improvements and bug fixes.

Source: linux.org.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster